-->
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: *ToOne associations and field vs. method annotation
PostPosted: Thu Jan 13, 2011 10:25 am 
Regular
Regular

Joined: Thu Sep 16, 2004 4:56 pm
Posts: 80
Is it better to annotate methods with @Id, @Column, etc. so that *ToOne associations can be lazily fetched or will *ToOne associations be lazily fetched still if annotating the fields????

I can see the bytecode for not having to initialize the field up until getXXX is called when annotating the methods, but how is that possible is just the field annotated?

thanks,
Dean

_________________
The list of compelling reasons to reduce the estimate does not include you simply wishing it would take less time - Unknown


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.