From dev-return-21304-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Sun Nov 25 12:41:06 2012 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 053D8D1C3 for ; Sun, 25 Nov 2012 12:41:06 +0000 (UTC) Received: (qmail 8360 invoked by uid 500); 25 Nov 2012 12:41:05 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 8025 invoked by uid 500); 25 Nov 2012 12:41:00 -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 7738 invoked by uid 99); 25 Nov 2012 12:40:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Nov 2012 12:40:58 +0000 Date: Sun, 25 Nov 2012 12:40:58 +0000 (UTC) From: "Eric Charles (JIRA)" To: dev@openjpa.apache.org Message-ID: <1888135841.21241.1353847258590.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (OPENJPA-223) columnNames field of @Index annotation is ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503492#comment-13503492 ] Eric Charles commented on OPENJPA-223: -------------------------------------- Hi there, We need to create index on 2 columns (see MAILBOX-186). Any further news on this OPENJPA-223 or any workaround that could help? Thx, Eric > columnNames field of @Index annotation is ignored > ------------------------------------------------- > > Key: OPENJPA-223 > URL: https://issues.apache.org/jira/browse/OPENJPA-223 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 0.9.6 > Reporter: Marc Prud'hommeaux > > It looks like we completely ignore the "columnNames" field of the org.apache.openjpa.persistence.jdbc.Index annotation. From Jonathan Feinberg on the mailing list: > Is there any way to cause the OpenJPA schema builder to emit an index across multiple columns? My attempt, > @Column(columnDefinition = "bytea") > @Index(name = "i_owner_md5", columnNames = { "owner_id, md5" }) > public byte[] getMd5() > { > return md5; > } > is silently misinterpreted, in that only the annotated field (md5) gets indexed. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira