Hey,
I have this mapping:
Code:
<idbag access="org.jvnet.hyperjaxb2.runtime.hibernate.accessor.ListAccessor" table="CRITERIA_DICTIONARY_TO_CRITERIA" name="Criterion" lazy="true">
<collection-id type="org.hibernate.type.LongType" column="CriteriaDictionary_Criterion_Hjindex">
<generator class="increment"/>
</collection-id>
<key>
<column name="CRITERIA_DICTIONARY_ID"/>
</key>
<many-to-many class="com.mercado.s2002.analysis.objects.Criterion">
<column name="CRITERIA_ID"/>
</many-to-many>
</idbag>
i dont want hibernate to cascade "Criterion" in case that their parent (CRITERIA_DICTIONARY) exists in the DB.
How can i set cascade="save" in idbag?
How hibernate know that this CRITERIA_DICTIONARY is new in case that the id is assign by application
Thank you