我是JHipster的新手,并且正在使用以下Entity定义创建一个新项目:
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中,我收到以下警告:
目前尚不清楚这些关系中的每一个可以被分组以消除警告。