更改数据类型uisng json文件或.jh文件的大小 - Jhipster实体生成

时间:2018-03-27 20:27:11

标签: jhipster liquibase

通过更改相应的.json文件或.jh文件来更改数据类型大小来修改实体似乎不起作用。生成的更改日志文件没有更改集条目。

我尝试使用jhipster版本(v4.14.1)

  1. jhipster entity entityName(在更改entityName.json之后 - 编辑了数据类型varchar的大小)。

  2. jhipster import-jdl jdlfile.jh(在更改各个实体的数据类型varchar的大小之后)。

  3. 我不得不手动更改"更改日志"文件。有趣的是,所有其他相关文件,如" entity-dialog.html"改变以反映大小。

    Json文件:

    
    
    {
        "fluentMethods": true,
        "relationships": [
            {
                "relationshipName": "diff_table",
                "otherEntityName": "diff_table",
                "relationshipType": "many-to-one",
                "otherEntityField": "id"
            }
        ],
        "fields": [
            {
                "fieldName": "ab",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 50
            },
            {
                "fieldName": "abc",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 50
            },
            {
                "fieldName": "abc",
                "fieldType": "XYZ",
                "fieldValues": "A,B,C,D,E,F"
            },
            {
                "fieldName": "abd",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 35
            },
            {
                "fieldName": "abe",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 35
            },
            {
                "fieldName": "abf",
                "fieldType": "LocalDate"
            },
            {
                "fieldName": "abs",
                "fieldType": "LocalDate"
            },
            {
                "fieldName": "abh",
                "fieldType": "LocalDate"
            },
            {
                "fieldName": "abj",
                "fieldType": "LocalDate"
            },
            {
                "fieldName": "abk",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 50
            },
            {
                "fieldName": "abkk",
                "fieldType": "Long"
            },
            {
                "fieldName": "abcc",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 100
            },
            {
                "fieldName": "abbc",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 100
            },
            {
                "fieldName": "abbc",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 20
            },
            {
                "fieldName": "amc",
                "fieldType": "Boolean"
            },
            {
                "fieldName": "abad",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 10
            },
            {
                "fieldName": "amms",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 50
            },
            {
                "fieldName": "anda",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 200
            },
            {
                "fieldName": "amdmdd",
                "fieldType": "LocalDate"
            },
            {
                "fieldName": "ajdd",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 20
            },
            {
                "fieldName": "adnkd",
                "fieldType": "Boolean"
            },
            {
                "fieldName": "andand",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 300
            },
            {
                "fieldName": "addad",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 50
            },
            {
                "fieldName": "dadad",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 50
            },
            {
                "fieldName": "dadad",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 50
            },
            {
                "fieldName": "dad",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 10
            },
            {
                "fieldName": "dad",
                "fieldType": "Long"
            },
            {
                "fieldName": "dada",
                "fieldType": "String",
                "fieldValidateRules": [
                    "maxlength"
                ],
                "fieldValidateRulesMaxlength": 100
            }
        ],
        "changelogDate": "20180325122923",
        "entityTableName": "table_name",
        "dto": "mapstruct",
        "pagination": "pagination",
        "service": "no",
        "jpaMetamodelFiltering": false
    }
    
    
    

    我做错了吗?任何帮助将不胜感激。

0 个答案:

没有答案