« java.util.UUID primary keys in hibernateMantis Issue Tracker's Bugnote Links »

5 comments

Comment from: maddin [Visitor]
maddin"I’ll put you out of your misery now - you can’t!"

You can, use bytecode instrumentation and this:

@OneToOne( fetch = FetchType.LAZY )
@org.hibernate.annotations.LazyToOne ( org.hibernate.annotations.LazyToOneOption.NO_PROXY
)

so it is possible but doesnt mean its a good thing.... /m
13/05/09 @ 17:57
Comment from: André Faria Gomes [Visitor]
André Faria GomesThanks for share it. I've been looking to solve hibernate one2one lazy loading for ages too.
Keep up the great work!
05/07/10 @ 21:43
Comment from: Paweł Kępka [Visitor]
Paweł KępkaOn my blog I have described how to make on-to-one optional relationship lazy without entity code instrumentation. Check: http://justonjava.blogspot.com/2010/09/lazy-one-to-one-and-one-to-many.html
05/10/10 @ 16:45
Comment from: Valfrido [Visitor]
ValfridoI resolve this problem putting:
optional=false in Annotation @oneToOne, only this.
06/06/11 @ 16:01
Comment from: Lars Herrmann [Visitor]
Lars HerrmannI got this to work with optional=false and the use of a PrimaryKeyJoinColumn
28/06/11 @ 11:03

Leave a comment


Your email address will not be revealed on this site.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)