-->
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.  [ 5 posts ] 
Author Message
 Post subject: inverse="true" and batch update
PostPosted: Thu Mar 10, 2005 10:21 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
Hibernate version: 2.1.4

Mapping documents:

<class name="SubjectAddress" table="SUBJECT_ADDRESS"
lazy="true">
[...]
<many-to-one name="emailAddress"
class="EmailAddress"
column="ADDRESS_ID"
insert="false" update="false"
cascade="none" />
</class>

<class name="EmailAddress" table="EMAIL_ADDRESS" lazy="true">
[...]
<set
name="subjectAddress" lazy="true" cascade="none"
inverse="true">
<key column="ADDRESS_ID"/>
<one-to-many
class="com.rn.mapping.SubjectAddress"/>
</set>
</class>

Why is it when I try to update a EmailAddress I get
"Batch update row count wrong: 0"?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 14, 2005 6:00 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
0 replies for so many days...
could it be another thing the couse of this error?
what else should I pay attention to, besides the mapping?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 15, 2005 4:10 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
I see that subjectAddress is null.
Could this be the problem? Why it's paying attention to this if inverse is set to true?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 15, 2005 5:25 am 
Beginner
Beginner

Joined: Tue Nov 09, 2004 6:26 am
Posts: 32
as you can imagine, a searched the forum already and view-ed the FAQ.
Nothing worked for me :(


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 15, 2005 6:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This has been discussed numerous times already on the forum. Most likely your unsaved-value mapping is missing or wrong.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.