The value of the length property must be greater than or equal to name atribute length, else throwing an error.
Works
@Column(name = "typ e", length = 4, unique = true)
private String type;
Not works, type.length: 4 != length property: 3
@Column(name = "type", length = 3, unique = true)
private String type;