-->
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: Association table paradigm
PostPosted: Fri Jun 03, 2005 2:10 pm 
Newbie

Joined: Thu May 26, 2005 1:04 pm
Posts: 13
I have two entities EntityA and EntityB
EntityA - > TableA (updatable)
EntityB -> TableB (readonly)
Association Table- > TABLEAB (AB_UID,A_UID,B_UID) (updatable)

Whine I do saveOrUpdate(EntityA) after setting the EntityA property of Set of EntityB's it does not update the TABLEAB.

Is it some thing wrong with the mapping.

Mapping documents:
<hibernate-mapping>
<class name="EntityA" table="TableA">
<id name="aUid" column="a_uid" type="java.lang.Long">
<generator class="native"/>
</id>
<property name="aName" column="A_NAME" type="java.lang.String"
length="50"/>
<!--collections-->
<set name="bees" table="TABLEAB" cascade="all">
<key column="A_UID"/>
<many-to-many column="B_UID"
class="EntityB" cascade="none"/>
</set>
</class>
</hibernate-mapping>


Hibernate version:3.05

Name and version of the database you are using:HSQLDB 1.7.1

_________________
RT


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.