title: Acceptance of specific values using Hibernate
body: <p>If I use the annotation <code>@Size(min = 1, max = 50)</code> in Hibernate, I can write a string to the database with at least one and at most 50 characters.</p>
  
  <p>But now I need to restrict the possible values to only two numbers: <code>12342</code> and <code>13409</code>. </p>
  
  <p>Is there any annotation that allows this?</p>