java - Hibernate/JPA/Seam - Validate an Entity Programmatically? -
i have entity in jboss seam-based project makes use of hibernate validator annotations throughout. although i've got directives in jsf pages require elements, etc. i'd able 1 last failsafe validation before calling entitymanager.persist()
, ending validation exception.
is there way validate entity programmatically? i've never worked hibernate/jpa, i'd love hear recommendations getting working. thanks!
bean validation api supports programmatic usage, see, example, hibernate validator reference.
Comments
Post a Comment