visual-studio-code - JDL:找到可分组关系“OneToOne”
问题描述
我是 JHipster 的新手,正在使用以下实体定义创建一个新项目:
enum AccountType {
CHECKING, SAVINGS
}
enum TransactionType {
CHECK, DEPOSIT, WITHDRAWAL
}
enum EnvelopeType {
INCOME, EXPENSE
}
// The name 'Account' is a reserved keyword and can not be used as an entity class name.
entity Ledger {
name String required
type AccountType
memo String
accountNumber String
routingNumber String
}
entity Envelope {
name String required
type EnvelopeType
memo String
}
entity Transaction {
name String required
type TransactionType
memo String
amount BigDecimal
}
relationship OneToOne {
Transaction to Envelope
}
relationship OneToMany {
Ledger to Transaction
}
在 VS Code 中,我收到以下警告:
- 找到可分组关系“OneToOne”
- 找到可分组关系“OneToMany”
目前还不清楚这些关系中的每一个可以与哪些组合来消除警告。
解决方案
推荐阅读
- python - 在数据框python的每一行中按字母顺序对单词进行排序
- android - 在 Rx 回调中取消了已关闭的变量
- r - 在数据框中查找行,其中一列中的文本可以在另一列中找到,在 R
- c - 为什么保存受限指针的值不会给出未定义的行为?
- python - 使用为您的 Python 解释器安装的正确版本的“pip”
- python - 如何提取 Python 源代码中使用的所有函数和 API 调用?
- php - 亚马逊 MWS - 使用 GetMyFeesEstimate (PHP/Laravel)
- android - Android listview项目点击影响多个项目
- java - 找不到 Android MediaPlayer 文件路径
- gremlin - Gremlin:使用时间戳属性过滤重复边