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?
|
|