4

I'm currently trying to code my UML-diagram scheme in JDL-Studio, but inheritance isn't supported apparently. Answers from different platforms didn't help.

Let's say I want the class Fashion to inherit from Department. Is there a way to bypass the inheritance issue?

UML class diagram

I aim to import the finished JDL-Studio code to my IntelliJ project.

I included some relation types, so you can see the syntax of JDL-studio.

relationship OneToOne {
    Location{country} to Country
}

relationship OneToOne {
    Department{location} to Location
}

relationship ManyToMany {
    Job{task(title)} to Task{job}
}

lu_lu
  • 133
  • 12
  • 2
    You'll have to code it manually by modifying generated code or tables depending on which inheritance mapping strategy you decide to use. So your first step is to decide about this strategy based on your business requirements. See https://www.baeldung.com/hibernate-inheritance for an introduction – Gaël Marziou Feb 13 '20 at 17:41

1 Answers1

3

As Gaël Marziou commented, you have to implement it manually. I just want to repeat it to see an answer on your question on stackoverflow - by no means to take his credits (he's undoubtedly great!!).

For coding the generated source further, I just want to point at Side-by-Side-coding to be able to update your code with jhipster in the future. There is a good practice example and detailed explanation from David Steiman (xetys) on youtube, along with inheritance.

Jochen Haßfurter
  • 875
  • 2
  • 13
  • 27