1

我是 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”

目前还不清楚这些关系中的每一个可以与哪些组合来消除警告。

4

0 回答 0