潮人 - 导入 JDL

hipster - importing JDL

我是 jhipster 的新手。如果答案很明显,我很抱歉。

我正在尝试使用以下命令导入我的 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

尝试了我找到的所有修复方法,但我得到了同样的错误 在乞讨时我有一个枚举,但我改变了它只是为了让它工作。但我仍然收到此错误 我没有看到任何我知道的保留字

提前感谢您的宝贵时间

您不能调用实体 Package,因为它是保留关键字。

您还需要删除或注释掉 Set service options to all except few and Set an angular suffix to让它发挥作用。