checkEntityState

protected final List<ConstraintViolation> checkEntityState(S newState)

Verifies the new entity state and returns ConstraintViolations, if any.

Default implementation uses the message validation.

Return

the violation constraints

Parameters

newState

a state object to replace the current state