通过更改相应的.json文件或.jh文件来更改数据类型大小来修改实体似乎不起作用。生成的更改日志文件没有更改集条目。
我尝试使用jhipster版本(v4.14.1)
jhipster entity entityName
(在更改entityName.json之后 - 编辑了数据类型varchar的大小)。
jhipster import-jdl jdlfile.jh
(在更改各个实体的数据类型varchar的大小之后)。
我不得不手动更改"更改日志"文件。有趣的是,所有其他相关文件,如" 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
}

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