FileDocCategorySizeDatePackage
Validatable.javaAPI DocHibernate 3.2.5610Tue Jul 27 22:33:36 BST 2004org.hibernate.classic

Validatable

public interface Validatable
Implemented by persistent classes with invariants that must be checked before inserting into or updating the database.
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public voidvalidate()
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