Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to lazy load @onetoOne

 
srini carry
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can I lazy load @oneToOne property in hibernate ?
 
Vasily Kukhta
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this is possible. If you are using JPA annotation, just use this: @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)

Best regards, Vasily.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic