-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: One-to-one with lazy initialization
PostPosted: Thu Dec 04, 2003 5:43 am 
Beginner
Beginner

Joined: Thu Sep 25, 2003 10:30 am
Posts: 23
Location: india
Can I have "lazy" attribute for One-to-one relationship. What's happening is when I query one table which has one-to-one relationship with other, the other table happens to be quried. I want to avoid it.
regards
prasad chandrasekaran


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 7:57 am 
Newbie

Joined: Mon Dec 01, 2003 7:00 am
Posts: 16
Hi prasad,
In one-to-one mapping using following

<one-to-one constrained="true" outer-join="false" class="proxy"/>

To define class as proxy check out Topic in document

Proxies for Lazy Initialization

[/b]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.