I have created a DAO service which has
HibernateSessionManager (from the tapestry-hibernate
module) as a property.
In AppModule :
public static MyFolderDAO buildMyFolderDAO(
@InjectService(HibernateSessionManager)
HibernateSessionManager sessionManager)
{
Thanks for the suggestion!
After reading
http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate
and tried a few combinations. The following works.
1) In AppModule :
define the MyFolderDAO service as before.
2) Create AppModuleTest.java which is only available
in unit test.