facebook

ME4S 9 Flex 4 Scaffolding supports JPA 2.x ?

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #316667 Reply

    diopek
    Member

    We initially created our project by using Flex scaffolding feature of ME4S 8.6.x and at that time ME4S was supporting JEE5 and JPA 1.x specification. With the new ME4S 9 release, now we tried with similar Flex 4 scaffolding. Although release notes says that new ME4S 9 is supporting JEE6 and JPA 2, once we checked out scaffolding artifacts, persistence.xml we realized that ME4S 9 is still generating JPA code for JPA 1.0 specification even though rest of the libraries upgraded for JEE6. So I am wondering if ME4S 9.x scaffolding will support JPA 2.x in the near future and also is there any way to manually upgrade JPA layer from 1.0 to 2.0 or any comment how to get around for that?

    #316695 Reply

    cconway
    Member

    If you scaffold into a new project, the Hibernate 3.5 jars are added to the project during the project bootstrapping, including the hibernate-jpa-2.0-api jar. I see that the namespace def in the persistence.xml remains at 1.0, which may be an oversight on our part. In a simple project scaffolded for MVC, I changed the persistence.xml header to the following and the project deployed and persisted data without further modification.

    <persistence xmlns=”http://java.sun.com/xml/ns/persistence&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; version=”2.0″
    xsi:schemaLocation=”http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd”&gt;

    Other than the incorrect persistence.xml header, is there something in particular that is JPA 2.0 that is missing, or that you’d like to see?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: ME4S 9 Flex 4 Scaffolding supports JPA 2.x ?

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