The Persistent Object Life-cycle Event Validation (POLEV) pattern is an implementation currently residing in the Spring Modules sandbox. This pattern offers validation of persistent objects when ORM tool life-cycle events occur. Currently Hibernate2 and Hibernate3 are supported while support for JDO 2.0 is planned.
Validation rules can be configured declaratively removing the need to validate object in the business logic for many use cases.
When validation fails a RuntimeException is thrown which is configurable by the user. This pattern does not intend to replace validation in other application tiers yet aims to ensure no invalid data is persisted to the database.
Supported life-cycle events for Hibernate are onSave, onFlushDirty and onDelete.
Take a look at this page on the Spring wiki for more information.