resthub / resthub-spring-stack

RESThub Spring stack
http://resthub.org/spring-stack.html
Other
121 stars 66 forks source link

Some beanValidations dont work when updating an entity #177

Closed pierre-duchesne closed 10 years ago

pierre-duchesne commented 11 years ago

For instance

@NotNull
@Size(min = 1, max=20)
@Getter @Setter
private String firstname;

The notNullvalidation is checked when persisting & updating (because the result of this beanValidation is a constraint directly on the database)

The Size validation is not checked when updating an entity.

Have you some advices to change this behavior ?

bmeurant commented 10 years ago

Is this still an active issue ? I cannot reproduce ...

bmeurant commented 10 years ago

Seems to be a missing @Valid BeanValidation annotation missing to force validation of nested entities.

I close this one.