It's my understanding that, out-of-the-box, Hibernate Tools can't currently generate Hibernate Validator annotations for the classes it reverse engineers from an existing database schema. Instead, it generates @Column annotations which aren't recognized by Hibernate Validator.
It would be really great if Hibernate Tools could generate these Hibernate Validator annotations. From what I've read, it seems like this requires the creation of a new exporter for Hibernate Tools.
My motivation for this request is that I have a requirement to validate my objects at the application-level, and I'm not currently using Hibernate to persist my objects, although I hope to in the future.
|