title: Executing specific group of javax validations
body: <p>In my application I have an endpoint, that gets a JSON of this Object, which then calls <code>calculateSomething()</code> to return the number as a http response. I'm validating those values with <code>javax.validation</code>. Now is there a possible way for me, to specify how the object of the class <code>Example</code> is being validated or what values of this object will be validated in this one specific endpoint (I have multiple endpoints)? In this case for example, that if this endpoint gets called, that only <code>one</code>, <code>two</code> and <code>three</code> will be validated, because those are the only values needed for <code>calculateSomething()</code>.</p>
  <p>class:</p>
  <pre><code>@Entity
  @PrimaryKeyJoinColumn(name = &quot;five&quot;)
   public class Example extends Foo {
   
      @ValidOne
      @Column
      private Integer one;
  
      @ValidTwo
      @Column
      private Integer two;
  
      @ValidThree
      @Column
      private Integer three;
  
      @ValidFour
      @Column
      private Integer four;
  
      @ValidFive
      @Column
      private Integer five;
  
      @Override
      public Integer calculateSomething() throws IllegalArgumentException{
          (one + two) * three
      } 
  }
  </code></pre>
  <p>endpoint:</p>
  <pre><code>@PostMapping (&quot;/calculateSomeNumber&quot;)
      public ResponseEntity calculateSomeNumber(@Valid @RequestBody Example example){
          return ResponseEntity.ok(example.calculateSomething());
      }
  </code></pre>