你好,我想遷移的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