columnDefinition = “TEXT” for all types of databases

前端 未结 4 1092
无人共我
无人共我 2021-02-20 03:53

Locally I use mysql, so when I use

 @Column(columnDefinition = \"TEXT\")

Unfortunately application have to run at different databases too, I\'

4条回答
  •  悲哀的现实
    2021-02-20 04:41

    What about something like this:

    @Lob
    private String someString;
    

    I think it's more portable and should effectively generate TEXT or LONGTEXT data type.

提交回复
热议问题