-->
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: many-to-one lazy="proxy" not loading id.
PostPosted: Wed May 03, 2006 1:53 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Hibernate version: 3.0.5

Normally I use lazy="true", but I've been playing with lazy="proxy" (the default) recently (in case we ever decide to rejoin the human race and upgrade our copy of hibernate). I've just noticed that the id of an object loaded via a many-to-one lazy="proxy" association is never filled in (unless the object was already in the cache, of course). All the other members are fine, it's just the id field.

Has anyone else encountered this? What causes it? What's the solution? Does anyone else even remember 3.0.5?

FWIW, all the id fields I've checked so far have been strings mapping to SQLServer uniqueidentifier columns (GUID/varchar(36)). I haven't included any mapping, because all sorts of different mappings cause exactly the same problem. Only thing in common is many-to-one lazy="proxy".

_________________
Code tags are your friend. Know them and use them.


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.