-->
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.  [ 1 post ] 
Author Message
 Post subject: Some Object are not loaded in eager fetch join?
PostPosted: Fri Aug 04, 2006 1:38 am 
Newbie

Joined: Tue Sep 28, 2004 12:56 pm
Posts: 9
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.1.3

Name and version of the database you are using:SQL Express 2005

I have an HQL query like this:

select b from A as a
join a.B as b
join fetch b.C
join fetch b.D

Where A many-to-one B
B many-to-one C
B many-to-one D

then I tried to iterate through the result
b, b.C, b.D

It worked all fine for one DB. But for other DB with different data set,
some b.C are not fetched. If session is not closed it will issue extra SQL query to get the b.C; while if the session is closed, it will exception out.

I guess this could be data problem, however, I can hardly image any cases this would have happened.


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

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.