openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Vorburger (JIRA)" <>
Subject [jira] Commented: (OPENJPA-953) ArrayIndexOutOfBoundsException in org.apache.openjpa.util.ApplicationIds$PrimaryKeyFieldManager.retrieve
Date Wed, 04 Mar 2009 09:19:56 GMT


Michael Vorburger commented on OPENJPA-953:

I actually found a work-around, for the attached test, do as follows: No DictLanguageLabelId
extends DictLabelId (and no @IdClass on DictLanguageLabelEntity), and make DictLabelId not
abstract.  Then add the following to the DictLabelEntity to "double map" that "object_dict_id"
column (which is also mapped in the DictLanguageLabelEntity subclass), and remove the @Id
from the forLanguage in DictLanguageLabelEntity:

    @Basic(optional = false)
    @javax.persistence.Column(name = "object_dict_id", nullable = false)
    private long objectRef;

and add a public long objectRef; to the DictLabelId (with updated equals() and hashCode()).
 seems to work, but is clearly a work-around for this bug...

> ArrayIndexOutOfBoundsException in org.apache.openjpa.util.ApplicationIds$PrimaryKeyFieldManager.retrieve
> --------------------------------------------------------------------------------------------------------
>                 Key: OPENJPA-953
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Michael Vorburger
>         Attachments:
> As per the email thread "ArrayIndexOutOfBoundsException in org.apache.openjpa.util.ApplicationIds$PrimaryKeyFieldManager.retrieve"
on yesterday (see,
there is a confirmed (Fay Wang) openjpa bug when using  application ID Identity Hierarchies
as per,
may be because I was trying to use them together with Entities as Identity Fields as per

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

View raw message