Java jersey validation <p>I'm using the validation in Java Jersey, and i'm building an application where it should be possible to save a draft of something. But before it is published, i would like it to be valid, using the annotations in the view model. When publishing, the same savemethod, for draft, is invoked. Therefor i cannot use the annotation in the method (methodName(@Valid ViewmodelName)). Can i somehow invoke a method to validate the annotations in the viewModel? Something like model->isValid(). Alternatively i could make two viewmodels; one for draft and one for published, but seems kind of double work.</p> <p>Best regards</p>