• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ganesh Choudhary
Greenhorn
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 ?

Thanks,
Ganesh
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!