-->
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: basic hibernate doubt
PostPosted: Wed Sep 06, 2006 8:14 am 
Newbie

Joined: Wed Sep 06, 2006 8:00 am
Posts: 2
Hi All,
How to retieve a base class info only incase of inheritance,when i use
session.createQuery("from Baseclass") Iam getting all records related to sub classes also..but I need only Base class records only..

In my application iam using table per subclass methode..


regards,
Konda


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 10:38 am 
Regular
Regular

Joined: Mon Jun 13, 2005 12:38 pm
Posts: 56
Location: Austin, TX
I'm not really sure what you mean by "all records related to sub classes"? Do you mean you are getting all the subclasses of the baseclass or all the associations of the subclasses. If the former is the case, then it should be the expected behavior. If it is the latter, then you will need to change the lazy loading behavior.


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.