Community
Participate
Working Groups
Build Identifier: Version: 3.7.0 Build id: I20110613-1736 In an annotation model, add the following : Annotated EClass -> ORM mapping -> Inheritance Generate JPA annotated model : the default inheritance mode is correctly set (in fact no strategy is generated which is correct). Now, if in Annotated EClass -> ORM mapping -> Inheritance you explicitly specify SINGLE_TABLE (change to JOINED for example and go back on SINGLE_TABLE), then the annotation generated is not correct : @Inheritance(strategy=SINGLETABLE) is generated instead of @Inheritance(strategy=SINGLE_TABLE) See the attached .ecore. My Texo version : 0.1.0.v201112171308. Reproducible: Always
Created attachment 210200 [details] Use case Use case attached.
Sorry, generated JPA code is @Inheritance(strategy = InheritanceType.SINGLETABLE) and not @Inheritance(strategy=SINGLE_TABLE) as said in the description. I also verified with TABLE_PER_CLASS mode. It is also incorrectly generated (generated value is @Inheritance(strategy = InheritanceType.TABLEPERCLASS)).
Build is done and published