[Resteasy-users] @ValidateRequest @Valid Constraints for embedded classes not validated

2012-02-14 Thread marceloverdijk
I'm using the simple Order and OrderLine classes as below, together with a OrderResource. The Order and OrderLine contain Hibernate Validator constraints for validation being performed automatically using the @ValidateRequest and @Valid annotations. public class Order { @Id p

Re: [Resteasy-users] @ValidateRequest @Valid Constraints for embedded classes not validated

2012-02-14 Thread marceloverdijk
I found the 'issue' (or better: missing configuration), which is unrelated to resteasy but javax.validation. The embedded lines list should be annotated with @Valid like: @Embedded @Valid List lines = new ArrayList(); -- View this message in context: http://resteasy-users.6463.n6.nabble.com/V