How to check only set of possible values for the String column in hibernate.
@Column(name="delivery_type")
private String deliveryType;
I just want to accept only 1 value from these sets of two. ("Pickup" OR "delivery").
other than these values will throw an exception.