Convert type fail in Spring 3.1 and Hibernate 4.1.0
chu the son
posted 5 years ago
Good day everybody.
I am trying integrate spring 3.1 and hibernate 4.1.0 (newest) to develop demo website. But when i use AOP in sping transaction management i got some problems with it. I don't want to use Annotation in JSF bean to indicate there is repository or anything else. I just only want to config in Spring and not any more. Here is a part of my DAO and BO files:
File DAO interface:
File DAO impl:
File BO Impl:
File BO interface:
And finally my exception when trying use AOP in Spring:
Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy6 implementing sale.java.dao.IAccountDAO,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [sale.java.dao.impl.AccountDAOImpl] for property 'loginDAO': no matching editors or conversion strategy found
I saw some tutorials on the internet and they config like me. I don't understand why it doesn't work. Can someone suggest me?