HIBERNATE4 does not support 1.5 of the JDK, in order to use on the Websphere6, the project's hibernate is downgraded to 3.6.10 version, Spring-orm.jar package does not have to be replaced, but the spring configuration file needs to be modified.
The previous configuration of HIBERNATE4 is:
<BeanID= "Sessionfactory"class= "Org.springframework.orm.hibernate4.LocalSessionFactoryBean">< Propertyname= "Packagestoscan"><List><value>Com.*.*.entity</value></List></ Property></Bean>
due to the packagestoscan of Hibernate3, this property is not Localsessionfactorybean This class, so you will be prompted not to find Packagestoscan's Setter method.
At this point, the Sessionfactory implementation class is changed to Annotationsessionfactorybean.
<BeanID= "Sessionfactory"class= "Org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">< Propertyname= "Packagestoscan"><List><value>Com.*.*.entity</value></List></ Property></Bean>
Hibernate3 is a different place from hibernate4