I'm not convinced you should be doing this in a HibernateConfigurer since you need the SessionSource. HibernateConfigurers are executed before the SessionFactory exists.
Can you add the listener in a @Startup method or some @EagerLoad service?
I'm not convinced you should be doing this in a HibernateConfigurer since you need the SessionSource. HibernateConfigurers are executed before the SessionFactory exists.
Can you add the listener in a @Startup method or some @EagerLoad service?