-->
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: Object graph retrievement proplem
PostPosted: Mon Apr 03, 2006 8:45 am 
Beginner
Beginner

Joined: Sat Jan 15, 2005 4:50 am
Posts: 23
Hi

I have a serious problem with hibernate. I retrieve an object graph in tomcat webapp, and also in a junit testcase. In testcase, there is no problem, i get the graph and relationships between object just as it appears in database. However, when i try the same in a webapp environment, hibernate scruw up my assotiations. It sets several assotiotions to null, but it can't be null. Also it sets assotiations, which are not in the database.

Thanks for help.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 03, 2006 7:53 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
I'm going to guess that you're not using OpenSessionInView, so all those lazily-loaded objects can't be found, but you've caught and ignored a load of exceptions.

Apologies for accusing you of heinous programming, but you didn't give us much info to work with. I'm just guessing here :)


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.