How can Hibernate map the SQL data-type nvarchar(max)?

后端 未结 4 1205
我在风中等你
我在风中等你 2020-12-14 10:50

I have a column in my SQL-2005 database that used to be a varchar(max), but it has been changed to an nvarchar(max).

4条回答
  •  一个人的身影
    2020-12-14 11:43

    What worked for me is to put the actual column definition in a @Column annotation:

        @Column(name="requestXml", columnDefinition = "ntext")
    private String request;
    

提交回复
热议问题