Hi,
I have a scenario as follows.
Class A - No table (used to create id, and some common fields)
Class B - Union subclass of class A
Class C - Sub class of class B.
Class B can have many sub classes. How do i specify a discriminator? This is what i tried.
1) Added the discriminator in Class A , but it didn't set the discriminator value in database. All other columns defined in Class A got persisted. 2) Tried adding discriminator in Class B , but hibernate didn't parse the xml.
Kindly help me resolve this.
|