Example usage for org.hibernate.event.spi EventType PRE_LOAD

List of usage examples for org.hibernate.event.spi EventType PRE_LOAD

Introduction

In this page you can find the example usage for org.hibernate.event.spi EventType PRE_LOAD.

Prototype

EventType PRE_LOAD

To view the source code for org.hibernate.event.spi EventType PRE_LOAD.

Click Source Link

Usage

From source file:es.logongas.ix3.dao.impl.rules.IntegratorImplRuleEngine.java

License:Apache License

private void prependListeners(EventListenerRegistry eventListenerRegistry) {
    eventListenerRegistry.prependListeners(EventType.PRE_INSERT, new EventListenerImplRuleEngine());
    eventListenerRegistry.prependListeners(EventType.PRE_LOAD, new EventListenerImplRuleEngine());
    eventListenerRegistry.prependListeners(EventType.PRE_UPDATE, new EventListenerImplRuleEngine());
    eventListenerRegistry.prependListeners(EventType.PRE_DELETE, new EventListenerImplRuleEngine());
    eventListenerRegistry.prependListeners(EventType.POST_INSERT, new EventListenerImplRuleEngine());
    eventListenerRegistry.prependListeners(EventType.POST_LOAD, new EventListenerImplRuleEngine());
    eventListenerRegistry.prependListeners(EventType.POST_UPDATE, new EventListenerImplRuleEngine());
    eventListenerRegistry.prependListeners(EventType.POST_DELETE, new EventListenerImplRuleEngine());
}