I came across to this problem today.
//varchar(max) @Column(name = "FORMULA", length = -1) private String formula;
length = -1 solved it for me.
enter image description here