-->
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: connect hibernate problem :)
PostPosted: Mon Apr 02, 2007 12:26 am 
Newbie

Joined: Tue Dec 12, 2006 11:50 pm
Posts: 10
FundCompany table mapping:

<class name="com.fundback.datebase.FundCompany" table="FundCompany" schema="dbo" catalog="FundDb">

<id name="companyId" type="java.lang.String">
<column name="CompanyId" length="20" />
<generator class="assigned" />


<set name="funds" inverse="true">
<key>
<column name="CompanyId" length="20" not-null="true" />
</key>
<one-to-many class="com.fundback.datebase.Fund" />
</set>

private Set funds = new HashSet(0);

FundCompany is main table,
funds is FundCompany of outside table.
they own the same row ,when main table insert value,the relevant row of outside table insert the same value.

the mapping is one-to-many.


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.