openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Prud'hommeaux (JIRA)" <>
Subject [jira] Created: (OPENJPA-223) columnNames field of @Index annotation is ignored
Date Wed, 18 Apr 2007 20:54:16 GMT
columnNames field of @Index annotation is ignored

                 Key: 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.
You can reply to this email to add a comment to the issue online.

View raw message