Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9C029EDA for ; Mon, 31 Oct 2011 14:43:55 +0000 (UTC) Received: (qmail 32338 invoked by uid 500); 31 Oct 2011 14:43:55 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 32255 invoked by uid 500); 31 Oct 2011 14:43:55 -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 32246 invoked by uid 99); 31 Oct 2011 14:43:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 14:43:55 +0000 X-ASF-Spam-Status: No, hits=-1999.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD,URI_HEX 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; Mon, 31 Oct 2011 14:43:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 42F7332A7E9 for ; Mon, 31 Oct 2011 14:43:32 +0000 (UTC) Date: Mon, 31 Oct 2011 14:43:32 +0000 (UTC) From: "Kevin Sutter (Commented) (JIRA)" To: dev@openjpa.apache.org Message-ID: <2016104274.40938.1320072212276.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <360908161.5936.1309450288686.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (OPENJPA-2025) Byte[] and Char[] should be treated as SingularAttributes, not lists by the metamodel generator 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-2025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13140189#comment-13140189 ] Kevin Sutter commented on OPENJPA-2025: --------------------------------------- As a reference, the mailing list discussion that created this JIRA is documented here: http://openjpa.208410.n2.nabble.com/Metamodel-generates-ListAttribute-for-arrays-instead-of-SingularAttribute-tc6529049.html > Byte[] and Char[] should be treated as SingularAttributes, not lists by the metamodel generator > ----------------------------------------------------------------------------------------------- > > Key: OPENJPA-2025 > URL: https://issues.apache.org/jira/browse/OPENJPA-2025 > Project: OpenJPA > Issue Type: Bug > Components: tooling > Affects Versions: 2.1.0 > Reporter: Michael Dick > Assignee: Michael Dick > Fix For: 2.2.0 > > > Per discussion on the mailing list, the generated metamodel code treats all arrays as persistent collections. This does not make sense for byte[] or char[], but has merit for other types. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira