-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Inheritance, subclass or joined-subclass sample code please
PostPosted: Fri Apr 02, 2004 1:39 pm 
Newbie

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 1:56 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Check the external tutorials.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.