【发布时间】:2016-03-11 01:47:23
【问题描述】:
我有专栏String post。
我想把这个post 映射成一个字符串。
我正在使用:
@Column(updatable = true, name = "Post", nullable = false, length=50)
public String getPost() {
return post;
}
此代码映射varchar(50)。
如何映射varchar(max)。
我试试这个代码。但是编译不出来。
@Column(updatable = true, name = "Post", nullable = false, length=max)
public String getPost() {
return post;
}
感谢您的回复。
【问题讨论】: