Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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.
subject: how to lazy load @onetoOne
JQL and eager
Problem with OneToOne relationship
Help understanding when to use em.find and query manager and their ability to fetch nested objects
Heap exception while loading complete table data from database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013