[hibernate-dev] [OGM] AssociationPersister.collectionPersister()

Emmanuel Bernard emmanuel at hibernate.org
Mon Aug 25 11:42:33 EDT 2014


>From what I could look at, AssociationPersister.collectionPersister() + inverse() is only called in OgmCollectionPersister.updateInverseSideOfAssociationNavigation() and the owning side CollectionPersister is provided.

So to answer your question

> is the collection persister passed to AssociationPersister#collectionPersister() supposed to always be the one from the main side? or the one from the currently processed side of the association?

The OgmCollectionPersister only do things if it is on the main side (ie not an inverse collection). So only the persister from the main side is provided.


More information about the hibernate-dev mailing list