facebook

I want to utilize jpa 2.1 support in myeclipse 2013

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #352412 Reply

    sairam39
    Member

    Hi Team,

    Greetings !!!

    I am having myeclipse professional license, I am using myeclipse version of 2013

    Version: 2013 SR1
    Build id: 11.0.1-20130621

    Now I want to utilize the support of jpa 2.1 in this version of myeclipse, but I am not ready to upgrade to 2014, because some other projects are also going on.

    Jpa 2.1 support and eclipseLink 2.5 jpa 2.1 implementation.

    What is the procedure to do this ??

    #352413 Reply

    support-swapna
    Moderator

    Sai,

    You can download EclipseLink 2.5 libraries.

    The JAR files that should be used for JPA persistence service are:

    eclipselink.jar
    javax.persistence_2.1.0.v201304241213.jar
    org.eclipse.persistence.jpa.modelgen_2.5.1.v20130918-f2b9fc5.jar
    org.eclipse.persistence.jpars_2.5.1.v20130918-f2b9fc5.jar

    Create a User library containing the above JARs. Then, for a JPA 2.0 project on the Java > Build Path properties page, remove the Eclipse Link 2.1.1 containers and replace them with the User Libraries you created. For a new project, you can select the User library during the ‘Install JPA Facet’ wizard.

    You can modify the JPA facet to 2.1 for the project from here :<workspace dir>/<project>/.settings/org.eclipse.wst.common.project.facet.core. Once done refresh the project and modify the persistence.xml to support JPA 2.1.

    Hope this helps.

    Let us know how it works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: I want to utilize jpa 2.1 support in myeclipse 2013

You must be logged in to post in the forum log in