Hibernate ORM EventListenerRegistry - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM EventListenerRegistry class.

This code example shows how to use the following methods: appendListeners
                            TranslationUpdateListener.class); 
            log.info("register event listener: {}", updateListener);
            // We have to use POST_UPDATE not POST_UPDATE_COMMIT. Because we 
            // still need to access some other entities to make transunit. After 
            // commit the transaction is closed. 
            eventListenerRegistry.appendListeners(EventType.POST_UPDATE,
                    updateListener);
            eventListenerRegistry.appendListeners(EventType.POST_INSERT,
                    updateListener);
        } 
    } 
 
    @Override 
    public void integrate(MetadataImplementor metadata,
            SessionFactoryImplementor sessionFactory,
            SessionFactoryServiceRegistry serviceRegistry) {
    } 
 
    @Override 
    public void disintegrate(SessionFactoryImplementor sessionFactory,
Full Snippet Info
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: getEventListenerGroup
		} 
	} 
 
	protected <T> EventListenerGroup<T> listenerGroup(EventType<T> eventType) {
		return getSession()
				.getFactory()
				.getServiceRegistry()
				.getService( EventListenerRegistry.class )
				.getEventListenerGroup( eventType );
	} 
 
	protected EventSource eventSource() {
		return (EventSource) getSession();
	} 
} 
 
Full Snippet Info
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods: appendListeners, EventListenerRegistry.appendListeners