jhipster / jhipster-core

JHipster Domain Language, used by JHipster UML and JDL-Studio to generate entities
Apache License 2.0
346 stars 116 forks source link

Add embedded option #429

Closed tchlyah closed 4 years ago

tchlyah commented 4 years ago

Hello guys,

Following https://github.com/jhipster/generator-jhipster/issues/7944 and https://github.com/jhipster/generator-jhipster/pull/9341 for supporting rich document models on document databases (MongoDB and Couchbase), I added a new embedded option that enables subdocuments as explained here : https://github.com/jhipster/generator-jhipster/issues/7944#issuecomment-419755147

Please make sure the below checklist is followed for Pull Requests.

MathieuAA commented 4 years ago

By the way, is the embedded option in the entity JSON file mandatory? What happens when the option isn't there? I guess the default value is false right?

tchlyah commented 4 years ago

Yes, it is not mandatory, the default value will be false as you said