Hi,

I seem to have encountered a bug where the inverse relation isn't set
for a @MappedBy annotated field. In JDBCStoreManager, in
initializeState() there is a comment:

// The inverse relation can not be set since
// we are eagerly loading this sm for
// a sm owner that is still in the process of
// initializing itself.
// Remember owner oid by setIntermediate().
// The inverse relation is set later by
// setInverseRelation() when the sm owner is fully
// initialized.

But it looks like setInverseRelation() is only looking for instances
of Collection, rather than Map, and the relation never gets set.

This only happens when you are selecting multiple objects -- the first
object's MappedBy field will have the inverse relation set in
initializeState(), but subsequent objects seem to fail as above.

-- 
_____________
David Minor

Reply via email to