openjpa-dev mailing list archives

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


David Minor updated OPENJPA-1201:

    Attachment: openjpa_superclass_collection.patch

Patch against 1.2.1

> "Mapped by" field not set when contained in superclass 
> -------------------------------------------------------
>                 Key: OPENJPA-1201
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 1.2.0, 1.2.1
>            Reporter: David Minor
>         Attachments: openjpa_superclass_collection.patch
> 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