-->
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: two idbag in one obect
PostPosted: Wed Feb 22, 2006 3:21 pm 
Newbie

Joined: Wed Feb 22, 2006 3:09 pm
Posts: 1
Hibernate version: 3.0.2

Mapping documents:

<hibernate-mapping package="it.lottomatica.cubo.core.hbm.vo">
<class name="AccountHVO" table="AC_ACCOUNT_TB">

<id name="id" column="ID" type="long">
<generator class="sequence">
<param name="sequence">AC_ACCOUNT_ID_SEQ</param>
</generator>
</id>

[...]

<idbag name="roleHVOList" table="AC_ACCOUNT_X_ROLE_TB" lazy="true">
<collection-id column="ID" type="long">
<generator class="sequence">
<param name="sequence">AC_ACCOUNT_X_ROLE_ID_SEQ</param>
</generator>
</collection-id>
<key column="ACCOUNT_ID" />
<many-to-many class="RoleHVO" column="ROLE_ID" />
</idbag>

<idbag name="profileHVOList" table="AC_ACCOUNT_X_PROFILE_TB" lazy="true">
<collection-id column="ID" type="long">
<generator class="sequence">
<param name="sequence">AC_ACCOUNT_X_PROFILE_ID_SEQ</param>
</generator>
</collection-id>
<key column="ACCOUNT_ID" />
<many-to-many class="ProfileHVO" column="PROFILE_ID" />
</idbag>

</class>
</hibernate-mapping>

Full stack trace of any exception that occurs:
WARN [org.hibernate.jdbc.AbstractBatcher] JDBC driver did not return the expected number of row counts

Name and version of the database you are using: Oracle 10g

Seems that when i insert or update account the first idbag (roles) in the mapping will be really not persisted (but query are executed!)
if i change order (first profiles and then roles) profiles will be not persisted :(

I have noticed that the first idbag is persisted only when the second idbag is empty

I have this warn WARN [org.hibernate.jdbc.AbstractBatcher] JDBC driver did not return the expected number of row counts

Thanks who help me


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.