title: Insert 'Text' field data type into MySQL using EJB 3
body: <pre><code> private String message = "";
   public String getMessage() {
    return message;
   }
  
   public void setMessage(String message) {
    this.message = message;
   }
  </code></pre>
  
  <p>I am using EJB3 and MySQL 5.1 using Java.
  I want to insert paragraphs of texts into MySQL Database using Entity Bean.
  But, When I add, MySQL can accept only 255 characters.  It shows me the following error:</p>
  
  <p>Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'message' at row 1</p>
  
  <p>Currently, field type of message is varchar(255) by default.  Is there anyway to change the field type to "Text" in Entity Bean or increase the limit 255 to 1000?</p>