Results 1 to 4 of 4

Thread: Upgrading to Hibernate 3.5.1 with Spring 2.5.6

  1. #1
    Join Date
    Nov 2006
    Location
    Boston, US
    Posts
    167

    Default Upgrading to Hibernate 3.5.1 with Spring 2.5.6

    Has anyone had luck in upgrading Hibernate 3.4/JPA 1.0 jars to Hibernate 3.5.1 and JPA 2.0 with Spring 2.5.6?

    I'm not interested in upgrading to Spring 3.0.2 as it breaks everything including Spring security 2.x.

    Thank you.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Spring 2.5 doesn't support JPA 2 only JPA 1, so the only way would be to either only use JPA1 and upgrade (although there are changes in spring 3 to make Hibernate 3.5 work) hibernate only.

    But judging from the changes made in spring 3 to make JPA 2 and Hibernate 3.5 work I doubt it will 'simply' work.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Nov 2006
    Location
    Boston, US
    Posts
    167

    Default

    Thanks for confirming that it will not work trivially. I spend a couple of days upgrading, and the amount of changes I had to do was non-trivial.

    I'll stay out of any future Spring releases and consider a migration to Guice, for the future.

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Upgrading to spring 3 shouldn't be that hard, it should be 99% backwards compatible so I'm not sure why you have so much trouble....
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •