Re: Run Before Hibernate Loads

2011-01-10 Thread Kalle Korhonen
(Sorry I reordered your post, and keep the discussion on users list please). On Mon, Jan 10, 2011 at 10:39 AM, Rich M wrote: > I'm a bit late catching up on list reading, but I saw this message you had > written and it looked like something I've been interested in doing with my > Hibernate setup

Re: Run Before Hibernate Loads

2011-01-03 Thread Kalle Korhonen
Probably lots of way to do that, but I typically use code similar to this: public void contributeHibernateSessionSource(OrderedConfiguration configurer, @InjectService("DefaultHibernateConfigurer") HibernateConfigurer defaultHibernateConfigurer) {

Run Before Hibernate Loads

2011-01-03 Thread Mark
I am using the hibernate module and it works well. However, I need to do some stuff before Hibernate loads. I have tried using the @Startup annotation on a method in AppModule, but this appears to run after Hibernate starts up. I have also tried something like: public static void contribute