[hibernate-dev] Fail fast feature for Hibernate Validator

Hardy Ferentschik hibernate at ferentschik.de
Mon Oct 4 10:20:30 EDT 2010


What would be the usecase? Saving time in large object graphs where I am  
only interested in whether there is a
failure at all? You really need LARGE object graphs to make this worth  
while.


On Mon, 04 Oct 2010 15:45:34 +0200, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:

> http://github.com/emmanuelbernard/hibernate-validator/commits/failFast
>
> What do you guys think?
>
> The idea is to stop a the first failure.
> You can enable that :
>  - by property
>  - at config time
>  - when the Validator is created
>
> Look at
> http://github.com/emmanuelbernard/hibernate-validator/blob/failFast/hibernate-validator/src/test/java/org/hibernate/validator/test/engine/failFast/FailFastTest.java
> for code examples.
>
> Emmanuel
>




More information about the hibernate-dev mailing list