You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by David Avenante <d....@gmail.com> on 2007/06/19 20:56:14 UTC
T5 -IOC and hibernate Module
Hi,
The Hibernate module configuration seem to be out of date !
The @Contribute annotation seems to be depecated (removed !).
I try to configure my IoC container for integrate Hibernate support
with session-per-request strategy with the help of module.
So i try this approach :
public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration) {
configuration.add("tapestry.supported-locales", "en");
configuration.add("tapestry.hibernate.HibernateSessionSource",
"my.app.domain");
}
@EagerLoad
public SessionFactory
build(@InjectService("HibernateSessionSource")HibernateSessionSource
hibernateSessionSource) {
return hibernateSessionSource.getSessionFactory();
}
The log output is :
14:49:36,446 - [main] INFO - HibernateSessionSource: Hibernate
startup: 333 ms to configure, 1,862 ms overall.
14:49:36,447 - [main] INFO - HibernateSessionSource: Configured
Hibernate entities:
But if i look into the source of the hibernate module the list of
entities in my package should be displayed !
So the question is how register correctly my package ?
Thank's
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org