openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OPENJPA-353) Character discriminators are not converted correctly if storeCharsAsNumbers = true
Date Tue, 18 Sep 2007 15:31:43 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Dick resolved OPENJPA-353.
----------------------------------

    Resolution: Fixed

Fixed in current dev streams. 

> Character discriminators are not converted correctly if storeCharsAsNumbers = true
> ----------------------------------------------------------------------------------
>
>                 Key: OPENJPA-353
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-353
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Michael Dick
>            Assignee: Michael Dick
>            Priority: Minor
>             Fix For: 1.0.1, 1.1.0
>
>
> If an application uses DiscriminatorType.CHAR and storeCharsAsNumbers is set to true
in the DBDictionary they'll see an error similar to this one when the row is fetched from
the database. 
> Caused by: java.lang.ClassNotFoundException: Could not map disciminator value "99" to
any known subclasses of the requested class "org.apache.openjpa.persistence.discriminator.CharAbstractEntity"
(known discriminator values: [C, R, c]).
>         at org.apache.openjpa.jdbc.meta.strats.ValueMapDiscriminatorStrategy.getClass(ValueMapDiscriminatorStrategy.java:98)
>         at org.apache.openjpa.jdbc.meta.strats.InValueDiscriminatorStrategy.getClass(InValueDiscriminatorStrategy.java:117)
>         at org.apache.openjpa.jdbc.meta.Discriminator.getClass(Discriminator.java:398)
>         at org.apache.openjpa.jdbc.meta.strats.SuperclassDiscriminatorStrategy.getClass(SuperclassDiscriminatorStrategy.java:63)
>         at org.apache.openjpa.jdbc.meta.Discriminator.getClass(Discriminator.java:398)
>         at org.apache.openjpa.jdbc.meta.strats.SuperclassDiscriminatorStrategy.getClass(SuperclassDiscriminatorStrategy.java:63)
>         at org.apache.openjpa.jdbc.meta.Discriminator.getClass(Discriminator.java:398)
>         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initializeState(JDBCStoreManager.java:320)
>         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initialize(JDBCStoreManager.java:255)
>         ... 34 more

-- 
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