@UniqueConstraintnot associated with hibernate-validator. It cannot be processed only by checking only in Java, it needs a trip to the database.
He tells hibernate that the database has a unique limitation. If the database does not have a unique constraint, I think the insert should go through.
Bozho source
share