-->
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.  [ 1 post ] 
Author Message
 Post subject: ONE to ONE
PostPosted: Fri Feb 23, 2007 7:50 am 
Newbie

Joined: Fri Aug 04, 2006 7:57 am
Posts: 2
Location: Mumbai
Code:
<hibernate-mapping>
   <class name="com.abc" table="xyz" dynamic-insert="false" dynamic-update="false" >
           <id name="userid" column="USERID" type="long">
      <generator class="sequence">
         <param name="sequence">ABC_SEQ</param>
      </generator>
      </id>
      <property name="name" column="NAME" />
    <join table="ABC"  >
      <key>
        <column name="USERID" not-null="true"/>
      </key>
     <property name="id" column="ID" type="long" />
       <property name="date" column="DATE" type="java.util.Date" />
    </join>
</class>
</hibernate-mapping>


I want to specify One to One relation in the above hbm file how should i go?

_________________
Liju Thomas


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

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.