• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting lazy For One-to-One relation using Configuration Object

Ganesh Choudhary
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can set one to one relation from hbm file using constrained="true" lazy="proxy" but the same thing i am trying to do from configuration Object using :

But i am to able to set it lazy . Although it breaks the Join , i mean to say, when i am using above code snippet hibernate fires a second select query to find the associated one-to-one entity. I want to change this immediate second select query to Object Navigation query(i.e set lazy).

Any view ? any idea ?

my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!