I've got a Hibernate3/Spring3 webapp working where each domain's dao and daoimpl is explicity typed out.
I'm now trying to convert it to using the GenericDao/GenericDaoImpl pattern but am having trouble
passing the session factory into GenericDaoImpl.
executing the following does print the correct domain name in GenericDaoImpl.findAll but also finds
sessionFactory to be null on the line commented with an "OOPS"
It's SOOOOOOOO close to working - what am I missing?
Thanks in advance,
Joined: Oct 02, 2008
The missing piece was the abstract=true parameter in the bean for genericDao ... so now you can have a bean for the abstract class and inject the sessionFactory param as usual.