-->
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: Using inheritence in the models
PostPosted: Fri Aug 13, 2004 2:01 pm 
Newbie

Joined: Wed Aug 11, 2004 11:12 am
Posts: 10
Location: Brazil
Hi there,

I'm a newbie in the Hibernate's world and I have a question about the modeling. Is it common to implements some models using inheritence? I say this, because I have two classes that share some filds in common, and in this case, inheritence would be good.

Everyone Could Help me showing some simple example?

thanks



Hibernate version: 2.1.4

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 13, 2004 6:06 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2003 2:46 pm
Posts: 45
Location: Saskatoon SK Canada
The documentation has an example. Have a look at http://www.hibernate.org/hib_docs/reference/en/html/inheritance.html.

_________________
Maury


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.