Long Strings/CLOB/TEXT for MySQL
private String comments;
/**
* @hibernate.property column="comments" length="2147483647"
**/
public String getComments() {
return comments;
}
XDoclet will generate this is the .hbm.xml file:
<property
name="comments"
type="java.lang.String"
update="true"
insert="true"
length="2147483647"
/>
Creates a LongText column in the table for 'blurb'. (LongText holds up to 2,147,483,647 characters).
|