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

org.hibernate.classic.Validatable Maven / Gradle / Ivy

//$Id: Validatable.java 4112 2004-07-28 03:33:35Z oneovthafew $
package org.hibernate.classic;


/**
 * Implemented by persistent classes with invariants that must
 * be checked before inserting into or updating the database.
 *
 * @author Gavin King
 */
public interface Validatable {
	/**
	 * Validate the state of the object before persisting it.
	 * If a violation occurs, throw a ValidationFailure.
	 * This method must not change the state of the object by
	 * side-effect.
	 * @throws ValidationFailure if an invariant is violated
	 */
	public void validate() throws ValidationFailure;
}










© 2015 - 2025 Weber Informatics LLC | Privacy Policy