|
In org.hibernate.event.internal.AbstractSaveEventListener#saveWithGeneratedId(...) field "generatedId" is not "SHORT_CIRCUIT_INDICATOR" or "POST_INSERT_INDICATOR", and therefore execute method "performSave" with other arguments. For the first two "generatedId" types validation execute correct and throw ConstraintViolationException, but for "generatedId" is other types, validation execute correct and not throw ConstraintViolationException on persist event. Have to do custom PersistEventListener extended of DefaultPersistEventListener 
Have any other ideas?
|