Hi,
I'm having a following case:
Class A @Inheritance(strategy=InheritanceType.JOINED) | Class B @Inheritance(strategy=InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name = "type", discriminatorType=DiscriminatorType.STRING) @DiscriminatorValue("a") | Class C @DiscriminatorValue("b")
I have Class A where I have general entity attributes like uuid, creationDate, updateDate, owner .... The Class B extends Class A with a @Inheritance(strategy=InheritanceType.JOINED), so I have both classes in their own tables. Now I need Class C which extends Class B, but has @Inheritance(strategy=InheritanceType.SINGLE_TABLE) stategy.
When I use this composition, the attributes of the Class C are not created. I've heard, that there shouldn0t be strategy mixing, but I realy need this case. Is there anything I can use?
Best regards, Bojan
_________________ http://www.objectverse.com http://www.alcyone.si http://blog.alcyone.si
|