Joined: Fri Mar 26, 2004 3:30 pm Posts: 4
|
Help please.
Would someone please provide sample Java code demonstrating how to:
1. Create subclass (or joined-subclass) instances
2. Load a subclass (or joined-subclass) using the Hibernate API
3. Save a subclass and therefore the parent class too
3. Explain where in the Java code would I use the discriminator-value to tell Hibernate which of the subclasses I would like to persist?
4. Explain how to distinguish between parent and subclasses in code?
I have read the reference but I still do not fully grasp how to code Inheritance logic.
I am using the latest build of Hibernate.
Thank you in advance,
Usman
|
|