openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Minor (JIRA)" <>
Subject [jira] Created: (OPENJPA-1201) "Mapped by" field not set when contained in superclass
Date Tue, 28 Jul 2009 18:18:15 GMT
"Mapped by" field not set when contained in superclass 

                 Key: OPENJPA-1201
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 1.2.1, 1.2.0
            Reporter: David Minor

The mapped by field (inverse relation) is not set when the field is contained in a superclass.
In my case the problem was with a collection of objects of the same type (i.e. a hierarchy),
and using parallel eager fetch mode, but I think the problem may be more general.

I tracked the problem to the setMappedBy() method in JDBCStoreManager, which is calling getDeclaredFieldMappings(),
but the result of this call doesn't include superclass field mappings. Changing it to getFieldMappings()
fixed the problem.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message