List of usage examples for org.hibernate.event.spi PreUpdateEventListener interface-usage
From source file com.github.javarch.persistence.orm.hibernate.listener.PreUpdateEventListener.java
public class PreUpdateEventListener implements org.hibernate.event.spi.PreUpdateEventListener { private static final long serialVersionUID = 6360911415858792281L; @Override public boolean onPreUpdate(PreUpdateEvent event) {
From source file com.invariantproperties.sandbox.springentitylistener.listener.HibernateEntityListenersAdapter.java
/**
* Adapter that allows a Hibernate event listener to call a standard JPA
* EntityListener.
*
* For simplicity only a single bean of each class is supported. It is not
* difficult to support multiple beans, just messy.
From source file com.mpe.common.validation.BeanValidationEventListener.java
/**
* Event listener used to enable Bean Validation for insert/update/delete events.
*
* @author Emmanuel Bernard
* @author Hardy Ferentschik
*/
From source file de.dktk.dd.rpb.portal.audit.AuditLogListener.java
/**
* AuditLogListener
*
* This listener implements auditing for CRUD entity operations
*
* @author tomas@skripcak.net
From source file debop4k.data.orm.hibernate.listener.UpdatedTimestampListener.java
/**
* {@link UpdatedTimestampEntity} ? UpdatedTimestamp ? Listener .
* <p>
* Listener {@link org.hibernate.Interceptor} Listener ? Listener .
*
* @author sunghyouk.bae@gmail.com
From source file es.logongas.ix3.dao.impl.rules.EventListenerImplRuleEngine.java
/** * Lanza el sistema de reglas en las entidades de Hibernate * * @author logongas */ public class EventListenerImplRuleEngine
From source file kr.debop4j.data.hibernate.listener.UpdateTimestampedEventListener.java
/**
* {@link IUpdateTimestampedEntity} ? updateTimestamp ? ? Event Listener .
*
* @author ? ( sunghyouk.bae@gmail.com )
* @since 12. 11. 22.
*/
From source file org.cgiar.ccafs.marlo.data.AuditColumnHibernateListener.java
/**
* A Hibernate listener to standardize how we are populating the Audit Columns for MARLO tables.
* This circumvents the need for developers to populate the fields themselves.
*
* @author GrantL
*/
From source file org.egov.infra.config.persistence.event.listener.HibernateEventListener.java
/**
* This Event listener class sets the audit properties createdBy, createdDate modifiedBy and modifiedDate. It does this by hooking
* to the pre-update and pre-insert events. The pre-update event was chosen instead of save-update events for setting modified
* properties to fix a bug where even for object reads the Hibernate objects were getting updated. However, the save-update event
* is still required for new objects (inserts) as Hibernate checks for not-null constraints before the pre-update event is fired.
* Due to auto flushing strategy that we use, every transaction commit causes a session.flush to be called. Flush calls cascade of
From source file org.grails.orm.hibernate.support.ClosureEventListener.java
/**
* <p>Invokes closure events on domain entities such as beforeInsert, beforeUpdate and beforeDelete.
*
* <p>Also deals with auto time stamping of domain classes that have properties named 'lastUpdated' and/or 'dateCreated'.
*
* @author Lari Hotari