-->
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: property-ref casuse update
PostPosted: Thu Jan 22, 2009 2:52 pm 
Newbie

Joined: Thu Jan 22, 2009 2:40 pm
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2

Hi, I've got a problem when I use property-ref attribute. My acse is:

Table 1
ID (PK)
COL_1 (UNIQUE)
COL_2
COL_3

Table 2
ID (PK)
COL_1
COL_4
COL_5

Then, for table 2 i Have:
<many-to-one
name="col1"
class="ar.org.Table1"
property-ref="col1"
column="col_1"
update="true"
insert="true"
cascade="none"
not-null="true"/>

So, when update table 2, hibernate too update table 2. Can someone help me, pls ?


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.