[英]Entity with @Column length greater than 255 characters
Since the default is 255 how would I specify an "infinite" length to hold information such as a huge text? 由于默认值为255,我如何指定“无限”长度来保存诸如大文本之类的信息? It should not be a vendor specific solution such as the "columnDefinition" property.
它不应该是特定于供应商的解决方案,例如“columnDefinition”属性。
Try a "text" (lob) http://www.postgresql.org/docs/8.0/static/datatype-character.html 尝试“文本”(lob) http://www.postgresql.org/docs/8.0/static/datatype-character.html
@Lob
@Type(type = "org.hibernate.type.TextType")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.