File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I could not find outer-join defination in one-to-one mapping

 
walter wang
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/reference/en/html_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"
>
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic