HIBERNATE JBoss.org
 |  Register  | 
     
News 
About 
   Feature List 
   Road Map 
Documentation 
   Related Projects 
   External Documentation 
Download 
Forum & Mailinglists 
Support & Training 
JIRA Issue Tracking
Wiki Community Area


Hibernate Public Training Courses


Get Hibernate in Action eBook!


JavaWorld 2003 Finalist


Jolt Award 2004 Winner
      
Documentation > Community Area > Long Strings/CLOB/TEXT for MySQL

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).

      

coWiki