Spring 4.1.6 and Hibernate 3.2.2? -


we migrated spring 3.x spring 4.1.6. spring 4 , above recommends hibernate 4 or hibernate 3.6.10. plan continue using hibernate 3.2.2 there several breaking changes b/w hibernate 3.2.2 , 3.6.10 , plan address later. far faced 1 issue spring 4 using exception classes missing in hibernate 3.2.2. able fix easily.

does have pointers other issues face combination ? or pointers how figure out specific features of hibernate 3.6 spring 4 using thats missing in hibernate 3.2.2 ?

you may take @ spring's official migration guide:

the org.springframework.orm.hibernate3 package phasing out of spring framework 4.2. keep supporting time being; however, recommend upgrade hibernate 4.2/4.3 or 5.0.

as of spring framework 4.0.1, provide hibernatetemplate variant in org.springframework.orm.hibernate4 ease migration common hibernate 3.x data access code, in particular if motivation upgrade lack of bug fixes in hibernate 3.x line. note newly written code recommended use hibernate's native sessionfactory.getcurrentsession() style.

on related note, hibernateinterceptor deprecated in org.springframework.orm.hibernate3 , doesn't exist anymore in org.springframework.orm.hibernate4. replacement basic session binding needs outside of transactions, consider use of new opensessioninterceptor variant, available both hibernate 3 , 4 of spring framework 4.0.2.

note: spring framework 4.0.0 release accidentally restricted hibernatetemplate's list element types object only. has been fixed of 4.0.2 (https://jira.springsource.org/browse/spr-11402), allowing immediate casts typed lists again. if run issues migrating existing hibernate access code, please upgrade spring framework 4.0.2 first.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -