你好,我想迁移的Hibernate 3.6.3应用到Hibernate 4,我收到以下错误:迁移,Hibernate的3.6.3-JPA应用到Hibernate 4
Invalid property 'dataSource' of bean class
[org.springframework.orm.jpa.LocalEntityManagerFactoryBean]:
Bean property 'dataSource' is not writable or has an invalid
setter method. Does the parameter type of the setter match the
return type of the getter?
我已经看了这个帖子: integrating JPA and SpringIOc
当我使用LocalEntityManagerFactoryBean负责我得到上面提到的错误,但是当我使用LocalContainerEntityManagerFactoryBean我创造我的DAO bean时得到一个错误。
我认为这是spring.orm依赖配置的问题,但我不确定,因为我所做的所有依赖项更改都不起作用。
我在哪里可以找到Hibernate 4迁移指南,以适应我的JPA,Hibernate 3.6.3和Spring应用程序?
春季版本中使用 – 2013-03-25 12:26:40
我想你可能必须使用' LocalContainerEntityManagerFactoryBean'而不是'LocalEntityManagerFactoryBean' – 2013-03-25 12:29:09