Hi,
We are currently using Hibernate JPA 3.2.6 together with Hibenate validator. We are using the provided standard validation annotations (like @NotNull, @Max, ...) but also are using our own validation annotations.
We want to turn off auto validation when saving newly created entities, since these entities are in a draft state. The user has to manually correct the entities after saving them. We already found a good description for a solution
http://www.nearinfinity.com/blogs/page/ ... hibernate1 , but this isn't directly working when using JPA.
Our first problem is disabling the standard validateEventlistener. we set the property "hibernate.validator.autoregister_listeners" to 2false" in the persistence.xml. But the standard validation is still triggered. We also tried using the JPA annotation @ExcludeDefaultListeners, which also did not disable the standard validation.
Any hints regarding this problem are welcome ;-)
Best regards,
Matthias