4
I have a column in the database that is limited to receiving a varchar(255)
, but I need to change this to a bigger size.
For that I added these annotations in the field:
@Column(nullable = true, columnDefinition = "TEXT")
@Length(max = 10000)
However, this did not change the supported column size I want to change. How do I make this change using JPA mapping?
But this change you expect to happen after the creation of the database already with the column created as
varchar(255)
formerly?– Paulo Rodrigues