Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 9272 invoked from network); 25 Feb 2011 16:35:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 16:35:04 -0000 Received: (qmail 79571 invoked by uid 500); 25 Feb 2011 16:35:04 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 79421 invoked by uid 500); 25 Feb 2011 16:35:04 -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 79002 invoked by uid 99); 25 Feb 2011 16:35:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 16:35:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 16:34:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8C2991B7197 for ; Fri, 25 Feb 2011 16:34:38 +0000 (UTC) Date: Fri, 25 Feb 2011 16:34:38 +0000 (UTC) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Message-ID: <47150270.16353.1298651678570.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Closed: (OPENJPA-382) Overriding column names for Byte[] attributes causes exception. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick closed OPENJPA-382. -------------------------------- > Overriding column names for Byte[] attributes causes exception. > --------------------------------------------------------------- > > Key: OPENJPA-382 > URL: https://issues.apache.org/jira/browse/OPENJPA-382 > Project: OpenJPA > Issue Type: Bug > Reporter: Michael Dick > Assignee: Michael Dick > Fix For: 1.0.1, 1.1.0 > > > If an entity has an attribute of type Byte array and the column name is overridden in xml the following error will occur. > > org.apache.openjpa.persistence.ArgumentException: You have supplied columns for > "org.apache.openjpa.persistence.xml.XmlOverrideEntity.picture", but this mapping cannot have columns in this context. > Code snippets follow : > public class XmlOverrideEntity { > > @Column(name="PICTURE") > @Lob > private Byte[] picture; > > } > // orm.xml > > > > > > > > > > -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira