title: Hibernate column annotation for TEXT
body: <p>I have a spring MVC boot application with a MySQL database and I'm trying to get a TEXT field in my database. I have the following code:</p>
  
  <p>Member.java</p>
  
  <pre><code>@Entity
  public class Member {
  private Long id;
  private String name;
  
  @Column(columnDefinition = "TEXT")
  private String biography;
  
  private String country;
  private String state;
  private String city;
  private Date dateOfBirth;
  private String gender;
  
  //Getters and setters
  </code></pre>
  
  <p>application.properties</p>
  
  <pre><code>spring.jpa.hibernate.ddl-auto=create-drop
  spring.jpa.show-sql=true
  spring.datasource.url=jdbc:mysql://localhost:3306/wave
  spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  spring.datasource.username=root
  spring.datasource.password=mysql
  spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
  spring.h2.console.enabled=true
  </code></pre>
  
  <p>And here is the Hibernate it creates</p>
  
  <pre><code>Hibernate: drop table if exists member
  Hibernate: create table member (id bigint not null auto_increment, biography varchar(255), city varchar(255), country varchar(255), date_of_birth date, gender varchar(255), name varchar(255), state varchar(255), primary key (id)) ENGINE=InnoDB
  </code></pre>
  
  <p>It still sets it as a varchar(255). Can anyone help me with this issue? Thank you in advance.</p>