Overview
Event fired to validate whole entity.
Common Attributes
name | type | required | default value | description |
---|---|---|---|---|
class | string | yes | none | Name of the class defining hook. |
method | string | yes | none | Name of the method defining hook. |
Example
<validatesWith class="com.sample.SampleHook" method="checkIfFirstnameMatchesGender" />
Method signature
public boolean hookName(final DataDefinition dataDefinition, final FieldDefinition fieldDefinition, final Entity entity, final Object fieldOldValue, final Object fieldNewValue) { // ... }