Skip to content

Dependecy liberty-target provides JPA 2.0 support instead of JPA 2.1 #15

@mindej

Description

@mindej

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.

The dependency tree is like this:
screen shot 2016-11-22 at 13 38 59

Tabe annotation is code is:
screen shot 2016-11-22 at 13 39 37

My maven configuration:

<dependency>
   <groupId>net.wasdev.maven.tools.targets</groupId>
   <artifactId>liberty-target</artifactId>
   <version>16.0.0.3</version>
   <scope>provided</scope>
   <type>pom</type>
</dependency>

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions