title: Java records validation anotation
body: <p>I have old POJO with valid annotation:</p>
  <pre><code>public class SomeData {
  
      @NotNull(message = &quot;Data not be null&quot;)
      private String data;
  
      public FormData(String data) {
          this.data = data;
      }
  
      public String getData() {
          return data;
      }
  
     public String setData(String data) {
          this.data = data
      }
      
  }
  </code></pre>
  <p>But know I have <code>records</code></p>
  <pre><code>public record SomeData(String data) {}
  </code></pre>
  <p>How I can add annotation in records?</p>