-->
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: Many to Many. Inverse = true dosnt work
PostPosted: Wed Jul 26, 2006 2:22 pm 
Beginner
Beginner

Joined: Sun May 07, 2006 2:44 pm
Posts: 33
Ver- 3.02

this is the mapping section:
Code:
<bag access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.ListAccessor" table="CRITERIA_DICTIONARY_TO_CRITERIA" cascade="all-delete-orphan" inverse="false" name="Criterion" lazy="true">
<key>
<column name="CriteriaDictionaryHashKey"/>
</key>
<many-to-many unique="true" class="com.mercado.s2002.analysis.objects.Criterion" lazy="proxy">
<column name="CriteriaHashKey"/>
</many-to-many>
</bag>


As you can see the cascade is all and inverse = "true"

When i save the obj It saves the Criterion but it dosnt update the table -CRITERIA_DICTIONARY_TO_CRITERIA
with the new relation that has created.

If i change to inverse = false. it is working .
why it dosnt work with inverse = true ?

another question , please:
I want the lazy will be true,so i tries to write anywhere in the mapping (in the default in the many-to-many, in the bag) , lazy=true (also try lazy = proxy)but it dosnt works. it fetch the list all the time.

please advice.

Thank you


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.