jhipster - hipster - 导入 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
尝试了所有我发现修复它的选项,但我在乞求我有一个枚举时遇到了同样的错误,但我改变它只是为了让它工作。但我仍然收到此错误我没有看到任何我知道的保留字
提前感谢您的时间
解决方案
您不能调用实体包,因为它是保留关键字。
您还需要删除或注释除少数之外的所有设置服务选项并设置角度后缀以使其工作。
推荐阅读
- reactjs - 有没有办法在 React 中使用状态来动态改变你的风格?
- php - 当月份设置为荷兰语时,如何比较日期
- javascript - getBackgroundThrottling() 或 Electron 上的等价物?
- jenkins - Jenkins Pipeline:如何从管道内禁用当前作业?
- swift - 为什么每次上传照片时,firebase 存储都会覆盖应保留所有用户图像的存储?
- javascript - 使用 JS 从 CSS 更改 BackgroundImage
- get - 如何在 apex 中创建 httpsrequest 'Get',然后在 Salesforce 中更新记录
- html - 移动浏览器无法显示特定图像
- reactjs - 未定义无法从 app.js 解析模块 react-navigation-stack
- python - 在pygame中执行for循环后图像不会保留在屏幕上