All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.envers.RevisionListener Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha3
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.envers;


/**
 * An implementation of this class, having a no-arg constructor, should be passed as an argument to the
 * {@link RevisionEntity} annotation.
 *
 * @author Adam Warski (adam at warski dot org)
 */
public interface RevisionListener {
	/**
	 * Called when a new revision is created.
	 *
	 * @param revisionEntity An instance of the entity annotated with {@link RevisionEntity}, which will be persisted
	 * after this method returns. All properties on this entity that are to be persisted should be set by this method.
	 */
	void newRevision(Object revisionEntity);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy