I find it difficult to find documents for migration. I used sping 3.0.5 and hibernate 3.4.
I moved on to the latest release candidates: spring 3.1 and hibernate 4.0
I managed to reorganize my classes without problems, but the application context for hibernate gives me problems, since I do not see examples of how to configure it.
In particular:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource"/> <property name="mappingResources"> <list>...</list> </property> <property name="hibernateProperties"> <props> ... <prop key="hibernate.connection.provider_class">org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider</prop> <prop key="hibernate.cache.provider_class">????</prop> ... </props> </property> </bean>
Apparently, the dataSource , mappingResources and hibernateProperties properties no longer exist, and I'm not sure what to put in hibernate.connection.provider_class and hibernate.cache.provider_class .
And I keep getting:
Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
when you start the application.
source share