Hello,
I have a problem mapping a given (=fixed) deep class hierarchy with value type inclusion. Here is a simplified version of the problem:
Code:
@Entity class A
{
@Id String key;
B b;
C c;
}
@Embeddable class B
{
String bla;
D d;
}
@Embeddable class C
{
String bli;
D d;
}
@Embeddable class D
{
String blubber;
}
The generated table for A (annotated as shown above) would have the columns: key, bla, bli, blubber
However, for a correct mapping it would need 2 blubber columns (one for class B and one for class C content).
Do you have any idea how to annotate the D.blubber member so the resulting DB table gets 2 blubber entries (without making class D an entity type)?
Thank you,
Robert[quote][/quote]