Hibernate fails when mapping a one-to-many collection by a field that is not the primary key. For example, if we have: Class Parent: Long id, Long collectionKey Class Child: Long id, Parent parent (key-column of collectionKey) Hibernate allows this construct using property-ref, and can instantiate objects into the collection, but cannot retrieve them on subsequent connections or once evicted from cache. |