Top Description Methods
org.hibernate.classic

public Interface Validatable


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

Method Summary

Modifier and TypeMethod and Description
public void
validate()

Validate the state of the object before persisting it.

Method Detail

validateback to summary
public void validate() throws ValidationFailure

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.

Exceptions
ValidationFailure:
if an invariant is violated