title: Hibernate @NotEmpty is deprecated
body: <p>I am using <a href="https://mvnrepository.com/artifact/org.hibernate/hibernate-core/5.2.13.Final" rel="noreferrer">5.2.13.Final</a> version of <a href="https://mvnrepository.com/artifact/org.hibernate/hibernate-core" rel="noreferrer">hibernate-core</a> and 
  5.2.13.Final version of <a href="https://mvnrepository.com/artifact/org.hibernate/hibernate-validator" rel="noreferrer">hibernate-validator</a>.</p>
  
  <pre><code>@NotEmpty
  @Column(name = "SSO_ID", unique = true, nullable = false)
  private String ssoId;
  </code></pre>
  
  <p><code>@NotEmpty</code> comes in picture when I need the following validation message from the<code>message.properties</code> file when <code>ssoId</code> is empty:</p>
  
  <p><code>NotEmpty.user.ssoId=SSO ID can not be blank.</code></p>
  
  <p>But <code>@NotEmpty</code> is deprecated in the latest version. What is its equivalent?</p>