I have a column in database of length 512. It is going to contain multiple email address separated by ";". How can I validate its respective variable in the entity so that all the email address are valid.
List will not work as I need to persist it in the column. Here is the data:
@Basic
@Column(name = "CC_EMAIL_ADDRESS", nullable = true, length = 512)
private String emailCC;