I want to save an object in data base. I'm using MySQL data base, but when I try it I get an exception that says: "data is bigger than Column length". How can I increase the length of my column using hibernate?
if your column is varchar use annotation length
varchar
length
@Column(length = 255)
or use another column type
@Column(columnDefinition="TEXT")
1.4m articles
1.4m replys
5 comments
56.9k users