Jhipster 6.0.0中的生成器损坏,Java问题和TS问题

时间:2019-05-09 18:04:38

标签: jhipster

在Jhipster 6.0.0中,当使用6.x.x版本的.jh文件时,我看到编译错误遍及TS和Java代码

错误示例 TS2403:后续变量声明必须具有相同的类型 TS2300:重复的标识符

不兼容的类型:java.lang.Integer无法转换为my.app.domain.Inventory

这里是更新。使用“双向一对多关系”本节下的网址https://www.jhipster.tech/managing-relationships/中给出的“添加关系的完全相同的步骤”时

jhipster entity Owner
...
Generating relationships with other entities
? Do you want to add a relationship to another entity? Yes
? What is the name of the other entity? Car
? What is the name of the relationship? car
? What is the type of the relationship? one-to-many
? What is the name of this relationship in the other entity? owner

我收到以下编译错误

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /E:/PROJECTS/WORKSPACE/MY/jhipster600app/src/main/java/org/jh/vsixooo/domain/Owner.java:[65,12] cannot find symbol
  symbol:   method setOwner(org.jh.vsixooo.domain.Owner)
  location: variable car of type org.jh.vsixooo.domain.Car
[ERROR] /E:/PROJECTS/WORKSPACE/MY/jhipster600app/src/main/java/org/jh/vsixooo/domain/Owner.java:[71,12] cannot find symbol
  symbol:   method setOwner(<nulltype>)
  location: variable car of type org.jh.vsixooo.domain.Car
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.659 s
[INFO] Finished at: 2019-05-10T11:32:57+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project jhipster-600-app: Compilation failure: Compilation failure:
[ERROR] /E:/PROJECTS/WORKSPACE/MY/jhipster600app/src/main/java/org/jh/vsixooo/domain/Owner.java:[65,12] cannot find symbol
[ERROR]   symbol:   method setOwner(org.jh.vsixooo.domain.Owner)
[ERROR]   location: variable car of type org.jh.vsixooo.domain.Car
[ERROR] /E:/PROJECTS/WORKSPACE/MY/jhipster600app/src/main/java/org/jh/vsixooo/domain/Owner.java:[71,12] cannot find symbol
[ERROR]   symbol:   method setOwner(<nulltype>)
[ERROR]   location: variable car of type org.jh.vsixooo.domain.Car
[ERROR] -> [Help 1]
[ERROR]

0 个答案:

没有答案