You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am using Liberty 16.0.0.3, and currently, I have a problem with JPA.
I need to add nonunique index to my table
@Entity
@Table(name = "DETAILS" )
public class DetailsDAO { ... }
According to JPA 2.1 ( which in my server.xml I am and using <feature>jpa-2.1</feature>) I should be able to use Index annotation but can not set variable index in Table annotation.
Can you clarify what problem you are seeing when you try to set the variable index in the Table annotation? Do you see any errors?
I was able to create a simple test project using the same maven dependency you have above and set the indexes similar to the reference you provided and do not have any errors.
Hello, I am using Liberty 16.0.0.3, and currently, I have a problem with JPA.
I need to add nonunique index to my table
According to JPA 2.1 ( which in my server.xml I am and using
<feature>jpa-2.1</feature>
) I should be able to use Index annotation but can not set variable index in Table annotation.The dependency tree is like this:
Tabe annotation is code is:
My maven configuration:
Here is reference:
https://stackoverflow.com/questions/3405229/specifying-an-index-non-unique-key-using-jpa
https://www.ibm.com/support/knowledgecenter/was_beta/com.ibm.websphere.wdt.doc/topics/localrepo.htm
The text was updated successfully, but these errors were encountered: