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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -