Hello;
I am going through my first round trip of reverse engineering hibernate code and using it in a spring application.
However, when my application starts up I get an exception creating the transactionManger bean: PropertyAccessExceptionsException.
In my applicationContext (reverse gen is putting all my hibernate config details in here) I have beans for the DAO’s that reverse gen made, the datasource, sessionFactory and the transactionManager.
People on other forums claim the problem is wiring the DAO classes to the session. I have read the solution is to have my DAO implement an interface and then wire that interface to the sessionFactory, not the DAO itself.
Does this sound correct? How can I get reverse gen to do this if its true?
I am sure other people are maintaining spring applications using reverse generated hibernate code. Could someone else outline how they are doing this? I have not been able to find a good tutorial on this.
Any help would be greatly appreciated.
Thanks,
Luke