http://docs.jboss.org/hibernate/orm/3.5/reference/en-US/html_single/#collections-indexedbidirectional

Though:
1) Reading back through that section its not really clearly stated.
2) Later work to "fold in" the annotation mappings seems to have 
completely dropped this unclearly stated point.

Essentially what the section is trying to say is that if the child 
defines an attribute that is the map key (or list index) from the 
parent collection perspective, the collection can still be inverse 
(non-owning).  which totally makes sense, if you think it through.


On Fri 09 Mar 2012 08:44:28 AM CST, Demetz, Guenther wrote:
>
>>> Indexed collections (maps and lists) should always be the owning side of 
>>> bi-directional associations for the exact reason you mention.
>
> OK, I suppose this is already mentioned somewhere in the documentation, or 
> not ?
>
> regards&  nice weekend
> G.D.
>
>

-- 
st...@hibernate.org
http://hibernate.org
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to