-->
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: repeated reads - returns object with null attributes.
PostPosted: Fri Jun 03, 2011 8:18 pm 
Newbie

Joined: Fri Jun 03, 2011 7:57 pm
Posts: 2
Hibernate 3.3, my SQL 5.
My app passes around the unique ID for a specific item in my DB.
This means that some scenarios require me to retrieve the item 9(read by Id), make a decision basedon some attribute and call some other method passing the ID. once agin, that method retrievees the oriiginal object again by ID. - there are several layers of this.

Hibernate is obviously clever enough to detect this and use caching because I see the code execute multiple times but the SQL logging only shows 1 time.

The problem is that at some point approximately 3 levels in - I start getting a not-null object back - but all the attributes are null. There are no messages being logged.

I assume this is some sort of configuration I am missing. Please can you suggest where that may be?
Thanks


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.