When I build the jdl file on the database side, I only get one entity, the other entities are not updated to the database.
This is my jdl file:
application {
config {
baseName ElectronicInvoiceProject
applicationType monolith
packageName org.electronic.app
authenticationType oauth2
prodDatabaseType oracle
devDatabaseType oracle
clientFramework react
}
entities *
}
entity ElectronicInvoice {
id UUID
dateAt LocalDate
cqtCode String
symbol String
number Long
}
entity SellerInformation {
id UUID
salesUnit String
taxCode String
address String
accountNumber String
}
entity BuyerInformation {
id UUID
fullName String
unitName String
taxCode String
address String
paymentMethod String
accountNumber String
}
entity InvoiceSummary {
id UUID
totalAmountBeforeTax BigDecimal
taxRate BigDecimal
totalTax BigDecimal
totalAmount BigDecimal
}
entity InvoiceItem {
id UUID
commodityName String
calculationUnit String
quantity Integer
unitPrice BigDecimal
totalPrice BigDecimal
}
relationship OneToOne {
ElectronicInvoice{seller required} to SellerInformation
}
relationship OneToOne {
ElectronicInvoice{buyer required} to BuyerInformation
}
relationship OneToOne {
ElectronicInvoice{summary required} to InvoiceSummary
}
relationship OneToMany {
InvoiceSummary{items} to InvoiceItem{summary required}
}
dto * with mapstruct
service * with serviceImpl
paginate * with pagination