You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org> on 2007/04/18 22:54:16 UTC

[jira] Created: (OPENJPA-223) columnNames field of @Index annotation is ignored

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