jhipster / jdl-studio

JDL Studio is an online JHipster Domain Language visual editor
https://start.jhipster.tech/jdl-studio/
Apache License 2.0
405 stars 114 forks source link

Allow to extend entity from abstract entity #50

Closed jcagarcia closed 6 years ago

jcagarcia commented 6 years ago

I want to create the following entity model using JDL Studio:

Petclinic UML

But I don't have the necessary JDL syntax to extends my Owner entity and my Vet entity from an abstract entity called AbstractPerson.

jdubois commented 6 years ago

Indeed, we don't support inheritance in JHipster. In my opinion it's a bad practice with Hibernate - of course you are free to generate Vets and Owners and then refactor them to add the AbstractPerson, the final code will work the same (main difference is in the database tables, but the rest of the application doesn't see that)

This is not a bug, but a question for StackOverflow, please follow our guidelines for help next time, as this isn't nice for other users who might have the same question.