Hello,
I'm sorry to ask again about this topic, but I've some problem to understand the way to use List with inverse="true".
There are many other posts on this (like
http://forum.hibernate.org/viewtopic.php?t=330), but I think it could be interesting to have a clarification on this point (and add it to the FAQ).
With a mapping like this :
<list
name="associations"
lazy="true"
inverse="true"
cascade="all">
<key column="key"/>
<index column="idx" />
<one-to-many class="com.foo.Whatever" />
</list>
the index column is not updated to the database. So, what to do :
- map the index column and put manually the collection index into the mapped index field ?
- Use inverse="false" (what are the risks of this ?) ?
- What else
Thanks for the clarification.