public interface

Validatable

org.hibernate.classic.Validatable

Class Overview

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

Summary

Public Methods
abstract void validate()
Validate the state of the object before persisting it.

Public Methods

public abstract void validate ()

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