title: How to enforce a validation constraint on an Embeddable entity property?
body: <p>I have a Person entity with an Email collection property:</p>
  
  <pre><code>@ElementCollection
  @CollectionTable(schema="u",name="emails",joinColumns=@JoinColumn(name="person_fk"))
  @AttributeOverrides({
      @AttributeOverride(name="email",column=@Column(name="email",nullable=false)),
  })
  public List&lt;EmailU&gt; getEmails() {
      return emails;
  }
  </code></pre>
  
  <p>In my Email class, I tried to annotate email with @Email:</p>
  
  <pre><code>@Embeddable
  public class EmailU implements Serializable {
      private String email;
  
      public EmailU(){
      }
  
      @Email
      public String getEmail() {
          return email;
      }
  }
  </code></pre>
  
  <p>But it doesn't work. What should be my approach here?</p>