Search in sources :

Example 1 with ServerSession

use of org.eclipse.persistence.sessions.server.ServerSession in project che by eclipse.

the class DBInitializer method setUpInjectionManager.

@Inject
public void setUpInjectionManager(GuiceEntityListenerInjectionManager injManager, EntityManagerFactory emFactory) {
    final ServerSession session = emFactory.unwrap(ServerSession.class);
    session.setEntityListenerInjectionManager(injManager);
}
Also used : ServerSession(org.eclipse.persistence.sessions.server.ServerSession) Inject(javax.inject.Inject)

Aggregations

Inject (javax.inject.Inject)1 ServerSession (org.eclipse.persistence.sessions.server.ServerSession)1