-3

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} to SellerInformation
    }
    
    relationship OneToOne {
      ElectronicInvoice{buyer} to BuyerInformation
    }
    
    relationship OneToOne {
      ElectronicInvoice{summary} to InvoiceSummary
    }
    
    relationship OneToMany {
      InvoiceSummary{items} to InvoiceItem{summary}
    }
    
    dto * with mapstruct
    service * with serviceImpl
    paginate * with pagination

This is a problem that I have not found an answer to for the past 2 days. I have tried deleting the user and recreating it in Oracle several times but it still doesn't work.

New contributor
Trần Đại is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.