Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JHipster inheritance

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}
}

like image 942
lu_lu Avatar asked Oct 16 '25 15:10

lu_lu


1 Answers

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.

like image 141
Jochen Haßfurter Avatar answered Oct 19 '25 11:10

Jochen Haßfurter