Hi,
just a general question: is there a way to have an @Embeddable-Object, that has different inheritance-levels?
For Example I´ve got three classes: "EmbeddableBaby" extends "EmbeddableChild" extends "EmbeddableParent". Now I have a class "Foo", that should have one of these classes as an @Embedded-attribute and depending on what level I choose, it also holds the parent-attributes.
Last question: if there is a way to make that approach work, would I have a possibility to define columns as not-nullable? As the embeddable-approach is closer to the Single_Table-Strategy I cannot imagine that this would work at all.
Please let me know, if there is a way to realize this.
Thomas
|