Hibernate Error while persisting TEXT datatype

后端 未结 1 1038

Using hibernate and mysql 5.5, I am trying to persist String value in TEXT type column of database table.

Tired to set String value in the mentioned column and trie

1条回答
  •  [愿得一人]
    2020-12-12 03:00

    remove the @Lob and @Size annotations, and use @Type(type="text") instead

    WORKED. Thanks @Maurice and @Funtik

    0 讨论(0)
提交回复
热议问题