java—如何使jhipster jdl导入跳过重新生成现有实体

qvtsj1bj  于 2021-07-14  发布在  Java
关注(0)|答案(0)|浏览(346)

我有一个由jhipster 6.7.0生成的monolith应用程序。我的jhipster的本地版本是7.0.1。当我尝试使用jhipster import jdl app.jdl命令导入一个新实体时,我发现已有的实体有问题。

ERROR! Error at entity Ticket: relationship name is not synchronized {
   "relationshipName": "jobs",
   "otherEntityName": "ticketJob",
   "relationshipType": "one-to-many",
   "otherEntityRelationshipName": "ticket",
   "otherEntity": "[TicketJob Entity]",
   "otherEntityField": "id",
   "ownerSide": false,
   "collection": true,
   "otherSideReferenceExists": false,
   "otherEntityIsEmbedded": false
} with {
   "relationshipName": "ticket",
   "otherEntityName": "ticket",
   "relationshipType": "many-to-one",
   "otherEntityField": "id",
   "otherEntityRelationshipName": "ticketJob",
   "otherEntity": "[Ticket Entity]",
   "ownerSide": true,
   "collection": false,
   "otherSideReferenceExists": false,
   "otherEntityIsEmbedded": false,
   "relatedField": {
       "fieldName": "id",
       "id": true,
       "fieldNameHumanized": "ID",
       "fieldTranslationKey": "global.field.id",
       "autoGenerate": true,
       "dynamic": false,
       "fieldType": "Long",
       "fieldNameCapitalized": "Id",
       "fieldNameUnderscored": "id",
       "tsType": "number",
       "entity": "[Ticket Entity]",
       "jpaGeneratedValue": "sequence",
       "readonly": true,
       "fieldIsEnum": false,
       "fieldWithContentType": false,
       "fieldNameAsDatabaseColumn": "id",
       "columnName": "id",
       "fieldInJavaBeanMethod": "Id",
       "fieldValidate": false,
       "nullable": true,
       "unique": false,
       "uniqueValue": [],
       "path": [
           "id"
       ],
       "relationshipsPath": [],
       "reference": "[id Reference]",
       "relatedByOtherEntity": true
   }

导入具有新版本的新实体时是否可以跳过现有实体?或者将现有实体升级到最新版本更容易吗(即使我尝试使用jhipster upgrade命令升级应用程序,也会遇到同样的问题

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题