[ https://issues.apache.org/jira/browse/OPENJPA-2777?focusedWorklogId=207787&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-207787 ]
ASF GitHub Bot logged work on OPENJPA-2777: ------------------------------------------- Author: ASF GitHub Bot Created on: 05/Mar/19 13:44 Start Date: 05/Mar/19 13:44 Worklog Time Spent: 10m Work Description: solomax commented on pull request #39: [OPENJPA-2777] Javax index URL: https://github.com/apache/openjpa/pull/39 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 207787) Time Spent: 10m Remaining Estimate: 0h > Indices specified using javax.persistence.Index annotation are not being > created > -------------------------------------------------------------------------------- > > Key: OPENJPA-2777 > URL: https://issues.apache.org/jira/browse/OPENJPA-2777 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 3.0.0 > Reporter: Maxim Solodovnik > Assignee: Maxim Solodovnik > Priority: Major > Fix For: 3.0.1 > > Time Spent: 10m > Remaining Estimate: 0h > > Indices specified using javax.persistence.Index annotation are not being > created > i saw a similar example but was hoping the index could be automatically > created. some indexes are automatically created but seeingly not others. > i tried the annotations as in the example and the index is never > created. here is what i have added to my class > @Entity > @Table(name = "billentry", indexes = { > @Index(name = "I_BLLNTRY_SECTION", columnList = > "BILLSECTION_ID", unique = false), > @Index(name = "I_BLLNTRY_BILLTEMPLATEENTRY", columnList = > "btentryid", unique = false) }) > public class BillEntry implements Serializable { > private static final long serialVersionUID = 1L; > @Id > @GeneratedValue(strategy = GenerationType.IDENTITY) > private Long id; > @Version > private Long version; > @ManyToOne > private BillSection billSection; > @ManyToOne > @Column(name = "btentryid") > private BillTemplateEntry billTemplateEntry; > Mail thread: https://markmail.org/message/c4tom6hwjt7temur -- This message was sent by Atlassian JIRA (v7.6.3#76005)