I'm using Hibernate Listeners PreUpdateEventListener and
PreInsertEventListener to do audit logging in the DB.
Now my problem is, how can I get access in the EventListenr class to
the SSO where the user is stored? As Hibernate loads
the classes as defined in the config file (see below), I can not bind
them using AppModule and @Inject something - or at least I do not know
how.
I searched the list but found no solution (or did not understand it ;-)
Thx, Max
--- definition in hibernate.cfg.xml ---
<!-- Audit Listener -->
<listener type="pre-insert"
class="net.weissboeck.gimmo.entities.AuditListenerImpl"/>
<listener type="pre-update"
class="net.weissboeck.gimmo.entities.AuditListenerImpl"/>