-->
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: No Proxy initialization on get identifier
PostPosted: Thu Jul 10, 2008 6:20 am 
Newbie

Joined: Sat Nov 04, 2006 11:37 am
Posts: 2
Location: Vienna
Hibernate does not trigger proxy initialization for single-ended associations when just the getter method of the identifier field is called. (See reference documentation 19.1.3. Single-ended association proxies.)

If field access (access=field) is used the Hibernate proxy doesn't know the identifier getter method and therefore initializes the proxy on any methodcall.

Now my question to Hibernate internals specialists:
Is it possible to achieve this optimization when field access is used?
Can I tell the proxy about the id getter method?

Thanks, Robert


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 10:45 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
I don't think there's any way to achieve this on a field-by-field basis. Sorry. :(

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


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.