facebook

MyEclipse 9.x & JPA 1.x & "Scaffold Spring CRU

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

    Is there a way to force MyEclipse to use JPA 1.x vs 2.0 when one adds “Scaffold Spring CRUD Application…” to the project (the reason being the target application server only supports JPA 1.x).

    #318440 Reply

    jkennedy
    Member

    You should be able to “roll back” the version of Hibernate that is being used on the project to Hibernate 3.2 which should solve the JPA version issue.

    If you used the defaults during scaffolding, you should have a classpath container on the project that is Named Hibernate XXX.

    Remove this classpath container from your project and then right click on the project and select.

    MyEclipse / Add Spring Runtime Dependencies

    This should bring up the panel with the list of all of the Classpath containers that we configure.

    Select the Spring 2.5 radio button which will change the contents of the List to reflect older versions of the dependent libs.

    Click the Uncheck All button and then go and specifically check Hibernate.

    This should roll your hibernate version back to the JPA 1.x support.

    You may also need to remove the Validation API classpath container if it is on your project and add the hibernate-validator-4.1.0.Final.jar manually to your classpath.

    you should be able to find this jar file here:

    https://maven.atlassian.com/content/repositories/jboss-releases/org/hibernate/hibernate-validator/4.1.0.Final/

    I believe that should do it.

    Depending on which app server you are using you may also have a few additional steps.

    Please let me know if run into any other issues along the way that you aren’t able to resolve.

    Also, please let me know which App Server you are working with if you need further assistance.

    Thanks,
    Jack

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: MyEclipse 9.x & JPA 1.x & "Scaffold Spring CRU

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