我是新来的小丑。所以如果答案是显而易见的,我很抱歉。
我试图使用以下命令导入JDL:
import-jdl ~/Downloads/jhipster-jdl.jh --debug我的JDL:
entity Package{
origin String,
destination String,
amORpm String,
department Integer,
weight Long,
barcode Long
}
entity Supplier {
regionName String required
}
entity Mission{
dueDate Instant required
}
entity Seller {
streetAddress String,
postalCode String,
city String,
stateProvince String,
phoneNumber String
}
entity WareHouse{
regionName String
}
entity Timer {
firstName String,
lastName String,
email String,
phoneNumber String,
hiringDate Instant required
}
entity GraphDataWeight {
effort Long
}
relationship OneToOne{
Mission {missionId} to Package
}
relationship OneToMany {
Supplier {packageId} to Package
Seller {sellerId} to Mission
Timer {timerId} to Mission
WareHouse {timerId} to Timer
GraphDataWeight {sellerId1} to Seller
GraphDataWeight {sellerId2} to Seller
}
paginate all with infinite-scroll
paginate all with pagination
dto * with mapstruct
Set service options to all except few
service all with serviceImpl
Set an angular suffix
angularSuffix * with mySuffix我所犯的错误:
The JDL is being parsed.
DEBUG! Error:
Error: The entity must be valid in order to be added.
Errors: The entity name cannot be a reserved keyword我尝试了我找到的所有方法来修复它,但是我在乞求时得到了同样的错误,我有一个枚举,但我更改它只是为了让它工作。但我还是会犯这个错误,我没有看到任何我知道的保留词
提前谢谢你的时间
发布于 2018-08-05 13:00:13
您不能调用实体包,因为它是一个保留关键字。
您还需要删除或注释掉所有的Set服务选项,只有少数和设置了一个角后缀才能使其工作。
https://stackoverflow.com/questions/51693761
复制相似问题