[ 
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

Reply via email to