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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to