Hibernate Tips: What’s the Difference Between @Column(length=50) and @Size(max=50)
Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: Some of our entity attributes are annotated with @Column(length=50), others with @Size(max=50) and others with both of these annotations….