JDL:找到可分组的关系“ OneToOne”

时间:2019-10-24 13:35:58

标签: visual-studio-code jhipster jdl

我是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中,我收到以下警告:

  • 找到可分组的关系“ OneToOne”
  • 找到可分组的关系“ OneToMany”

目前尚不清楚这些关系中的每一个可以被分组以消除警告。

0 个答案:

没有答案