What is the difference between the validation check of the following three fields?
@Entity
public class MyEntity {
@Column(name = \"MY_FIELD_1\", length
length
attribute is used by the schema generation tool to set the associated SQL column length.@Size
So both 2.
and 3.
should validate the String
length using Bean Validation. I'd pick 2.
because it's generic.