[hibernate-commits] Hibernate SVN: r11159 - branches/HAN_SPLIT/HibernateExt/validator/src/java/org/hibernate/validator/event.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Tue Feb 6 18:46:27 EST 2007
Author: epbernard
Date: 2007-02-06 18:46:27 -0500 (Tue, 06 Feb 2007)
New Revision: 11159
Modified:
branches/HAN_SPLIT/HibernateExt/validator/src/java/org/hibernate/validator/event/JPAValidateListener.java
Log:
more doc
Modified: branches/HAN_SPLIT/HibernateExt/validator/src/java/org/hibernate/validator/event/JPAValidateListener.java
===================================================================
--- branches/HAN_SPLIT/HibernateExt/validator/src/java/org/hibernate/validator/event/JPAValidateListener.java 2007-02-06 22:44:15 UTC (rev 11158)
+++ branches/HAN_SPLIT/HibernateExt/validator/src/java/org/hibernate/validator/event/JPAValidateListener.java 2007-02-06 23:46:27 UTC (rev 11159)
@@ -12,7 +12,18 @@
import org.hibernate.validator.ClassValidator;
/**
- * Java Persistence Entity Listener
+ * Java Persistence Entity Listener that validates entities on inserts or updates
+ * This listener needs ot be placed on each validatable entities
+ *
+ * <code>
+ * @Entity
+ * @EntityListeners(JPAValidateListener.class)
+ * public class Submarine {
+ * @NotEmpty private String name;
+ * ...
+ * }
+ * </code>
+ *
* @author Emmanuel Bernard
*/
public class JPAValidateListener {
More information about the hibernate-commits
mailing list