openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Kronegg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-828) Externalizer fails with ClassCastException with runtime enhancement
Date Mon, 06 Apr 2009 08:58:13 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696009#action_12696009
] 

Julien Kronegg commented on OPENJPA-828:
----------------------------------------

Got this issue using Boolean->CHAR Y/N mapping for runtime enhanced classes under OpenJPA
1.2.1:

    @Column(name="flag", nullable=true, length=1)
    @ExternalValues({"true=Y", "false=N"})
    @org.apache.openjpa.persistence.Type(char.class)
    public Boolean getFlag() {
      ..
    }

Applying changes described in the following edits solved the problem:
http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java?view=diff&r1=726926&r2=726927&pathrev=726927

This issue should also be solved in 1.2 and 1.3 branches...

> Externalizer fails with ClassCastException with runtime enhancement
> -------------------------------------------------------------------
>
>                 Key: OPENJPA-828
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-828
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Pinaki Poddar
>             Fix For: 2.0.0-M1, 2.0.0
>
>
> Several issues [1] are reported with @Externalizer field failing with ClassCastException.
The issue appears only for runtime enhanced classes and not for build time enhancement.
> [1] http://n2.nabble.com/%40Externalizer-does-not-work-on-persist--tt209702.html#a209702

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


Mime
View raw message