My understanding is that Hibernate's Annotations fall into 2 categories:
- Only take effect if Hibernate DDL is enabled (means that Hibernate can create/update/delete the DB schema
- Hibernate Validator uses them
In this helpful answer, Pascal Thivent explains the difference between @Column
and @Size
.
As I understand Hibernate Validator, their annotations will take effect regardless of whether DDL is enabled or not.
Please confirm/deny my understanding of Annotations, as well as Hibernate Validator's impact whether DDL is enabled/disabled.