cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From javaworkinggirl <>
Subject Use Validation Groups with Bean Validation?
Date Mon, 28 Jul 2014 17:19:51 GMT

Is there a way to use validation groups with bean validation (jsr-303) in

Passing in the group as an parameter to @Valid doesn't work.
Other suggestions?
   @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
   public Response postEntitlement(@Context final HttpServletRequest
request, @NotNull @Valid(OrderChecks.class) final CsgEntitlement
csgEntitlement) throws GenericRestException{ . .  .}

My main problem is that I want to use the same object in a POST and PUT but
the validation for the PUT is a subset of the validation for the POST. 
Other suggestions of how to accomplish this?

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message