File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: how to lazy load @onetoOne
Help understanding when to use em.find and query manager and their ability to fetch nested objects
JQL and eager
Problem with OneToOne relationship
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-2015