简体   繁体   English

@Column长度大于255个字符的实体

[英]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.

相关问题 如何在Java中将长度大于255的字符串值传递给ProcessBuilder - How to pass a string value of length greater than 255 to a processbuilder in java 字节数组大于255 - Byte array greater than 255 版本号无效:版本号可能为负数或大于 255 - Invalid version number: Version number may be negative or greater than 255 Enum常量名称长度大于10个字符时,引发检查异常? - Throw checked exception when Enum constant name length is greater than 10 characters? 正则表达式大于或小于3位数和字符 - Regex for greater than or less than 3 digits and characters 如何在Oracle Clob数据类型列中一次存储大于4000个字符的字符串长度? - How to store string length greater than 4000 char at a time in oracle clob datatype column? 使用EclipseLink JPA绑定大于255个字符的字符串 - Using EclipseLink JPA to bind Strings larger than 255 characters 即使由于日语字符而导致字符串长度小于250个字符,该值对于列错误也仍然太大 - Value too large for column error even when string length is less than 250 character due to japanese characters 如何在给定文件和记录中长度大于三个的单词数 - How to number of words with length greater than three in a given file and recording 数组长度大于5时程序仍然执行 - Program still executes when array length is greater than 5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM