From dev-return-6069-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Sep 06 21:49:52 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 92515 invoked from network); 6 Sep 2007 21:49:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 21:49:52 -0000 Received: (qmail 40259 invoked by uid 500); 6 Sep 2007 21:49:46 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 40231 invoked by uid 500); 6 Sep 2007 21:49:46 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 40220 invoked by uid 99); 6 Sep 2007 21:49:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 14:49:46 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 21:49:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A0D7714201 for ; Thu, 6 Sep 2007 14:49:28 -0700 (PDT) Message-ID: <2331798.1189115368554.JavaMail.jira@brutus> Date: Thu, 6 Sep 2007 14:49:28 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-353) Character discriminators are not converted correctly if storeCharsAsNumbers = true MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.