首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >潮人-进口JDL

潮人-进口JDL
EN

Stack Overflow用户
提问于 2018-08-05 11:09:55
回答 1查看 485关注 0票数 1

我是新来的小丑。所以如果答案是显而易见的,我很抱歉。

我试图使用以下命令导入JDL:

代码语言:javascript
复制
import-jdl ~/Downloads/jhipster-jdl.jh  --debug

我的JDL:

代码语言:javascript
复制
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

我所犯的错误:

代码语言:javascript
复制
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

我尝试了我找到的所有方法来修复它,但是我在乞求时得到了同样的错误,我有一个枚举,但我更改它只是为了让它工作。但我还是会犯这个错误,我没有看到任何我知道的保留词

提前谢谢你的时间

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-08-05 13:00:13

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

您还需要删除或注释掉所有的Set服务选项,只有少数设置了一个角后缀才能使其工作。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51693761

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档