-->
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: Saving Set with property-ref in the key
PostPosted: Tue Apr 27, 2010 5:44 am 
Newbie

Joined: Sun Mar 28, 2010 4:46 am
Posts: 2
Hello all, I'm using hibenrate 3.5.1 final and having some problems with saving Set with property-ref configuration.

ClassA is connected to ClassB with Many-to-one called "reference".
------
<many-to-one name="reference" column="refObjectid" class="com.msp.dao.entities.Requirement"/>
------
The Set in ClassB is related to a Table that have reference to ClassA and the key is configured like that
------
<set name="relatedRequirements" inverse="true" table="refcseRelatedRequirements" cascade="none">
<key column="refRequirementAid" property-ref="reference"/>
<many-to-many ..../>
</set>
------

When I save the the entity I get errors but when I update it everything is fine and the set is saved perfectly.

Does anyone have any clue what is going on?


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.