A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
how to lazy load @onetoOne
Joined: Nov 30, 2007
Jul 13, 2009 13:49:30
can I lazy load @oneToOne property in hibernate ?
Joined: Jan 17, 2009
Jul 14, 2009 07:24:11
Yes, this is possible. If you are using JPA annotation, just use this: @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
Best regards, Vasily.
I agree. Here's the link:
subject: how to lazy load @onetoOne
JQL and eager
Problem with OneToOne relationship
Heap exception while loading complete table data from database
Help understanding when to use em.find and query manager and their ability to fetch nested objects
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014