jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes how to lazy load @onetoOne Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to lazy load @onetoOne " Watch "how to lazy load @onetoOne " New topic
Author

how to lazy load @onetoOne

srini carry
Ranch Hand

Joined: Nov 30, 2007
Posts: 83
can I lazy load @oneToOne property in hibernate ?
Vasily Kukhta
Greenhorn

Joined: Jan 17, 2009
Posts: 23
Yes, this is possible. If you are using JPA annotation, just use this: @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)

Best regards, Vasily.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to lazy load @onetoOne
 
It's not a secret anymore!