-->
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.  [ 4 posts ] 
Author Message
 Post subject: HOWTO encourage NHibernate to load objects with..
PostPosted: Fri Oct 07, 2005 10:07 am 
Beginner
Beginner

Joined: Tue Aug 23, 2005 8:15 am
Posts: 45
their attributes of type collection in ONE query in case of classes hierarchy?

For example:
There is a base Class B, and derived classes D1, D2, D3.

I want get all objects inherited from B with HQL query:
FROM B

How can I say to NHibernate to retrieve all objects of inherited class with their attributes of type collection in one SQL query?


Top
 Profile  
 
 Post subject: hmm.. I asked the question twice but never were answered :((
PostPosted: Sat Oct 08, 2005 2:28 pm 
Beginner
Beginner

Joined: Tue Aug 23, 2005 8:15 am
Posts: 45
Is the question incorrect or too frequently asked? :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 3:38 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Just that nobody knows the answer probably :) including me.


Top
 Profile  
 
 Post subject: 2 sergey: Thanks!
PostPosted: Sun Oct 09, 2005 1:14 pm 
Beginner
Beginner

Joined: Tue Aug 23, 2005 8:15 am
Posts: 45
I will try to ask at hiberante forum.
The quetsion is very interesting to me.

I think only lazy="false" on collection attributes of all objects of hierarchy could help.
But I want not have "one query" loading always just in this query.

sergey wrote:
Just that nobody knows the answer probably :) including me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.