-->
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: I could not find outer-join in one-to-one mapping
PostPosted: Sat Aug 19, 2006 5:05 pm 
Beginner
Beginner

Joined: Mon Aug 22, 2005 9:57 pm
Posts: 27
Dear All

In Hibernate 3.1 reference

I could not find outer-join defination for one-to-one mapping
but in my project i am using it without problem

Could anyone tell me where to find outer-join 's defination
in one-to-one mapping ?

Below is one-to-one mapping in Hibernate3.1 Reference docs
http://www.hibernate.org/hib_docs/v3/re ... ml_single/

<one-to-one
name="propertyName" (1)
class="ClassName" (2)
cascade="cascade_style" (3)
constrained="true|false" (4)
fetch="join|select" (5)
property-ref="propertyNameFromAssociatedClass" (6)
access="field|property|ClassName" (7)
formula="any SQL expression" (8)
lazy="proxy|no-proxy|false" (9)
entity-name="EntityName" (10)
node="element-name|@attribute-name|element/@attribute|."
embed-xml="true|false"
foreign-key="foreign_key_name"
/>


Below is outer-join in one-to-one mapping used in my project
<!-- bi-directional one-to-one association to Employee -->
<one-to-one
name="employee"
class="org.hibernate.test.Employee"
fetch="join"
lazy="true"
outer-join="auto"
>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 20, 2006 10:33 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
You can look it up in the hibernate2 refdocs, if you like. It is deprecated though, you should use the fetch="join" attrbiute in hibernate3.

_________________
Code tags are your friend. Know them and use them.


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.