title: Hibernate hbm2ddl.auto=update is not alter the table
body: <p>I tested the Hibernate hbm2ddl.auto=update hibernate property. Actually, it creates the table if it's not finding the table in database but if i add one more field in my pojo class it doesn't alter the table. following are the config, mapping, pojo and test java file.
  My Pojo class,</p>
  
  <pre><code>package beans;
  public class Student {
      private int sid;
      private String name;
      private int marks;
      private String email;
  
      public String getEmail() {
          return email;
      }
  
      public void setEmail(String email) {
          this.email = email;
      }
  
      public Student() {
          // TODO Auto-generated constructor stub
      }
  
      public int getSid() {
          return sid;
      }
  
      public void setSid(int sid) {
          this.sid = sid;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public int getMarks() {
          return marks;
      }
  
      public void setMarks(int marks) {
          this.marks = marks;
      }
  
  }
  </code></pre>
  
  <p>Config:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;  
  &lt;!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"&gt;
      &lt;hibernate-configuration&gt;
      &lt;session-factory&gt;
      &lt;property name="connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
      &lt;property name="connection.url"&gt;jdbc:mysql://localhost:3306/&lt;/property&gt;
      &lt;property name="connection.username"&gt;xxx&lt;/property&gt;
      &lt;property name="connection.password"&gt;xxxx&lt;/property&gt;
      &lt;property name="connection.pool_size"&gt;10&lt;/property&gt;
      &lt;property name="dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
      &lt;property name="hbm2ddl.auto"&gt;update&lt;/property&gt;  
      &lt;property name="show_sql"&gt;true&lt;/property&gt;
      &lt;mapping resource="resources/student.hbm.xml"/&gt;
  
      &lt;/session-factory&gt;
      &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>mapping:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;  
  &lt;!DOCTYPE hibernate-mapping PUBLIC 
      "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
      "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"&gt;
      &lt;hibernate-mapping&gt;
      &lt;class name="beans.Student" table="student" schema="hibernate"&gt;
      &lt;id name="sid" &gt;&lt;/id&gt;
      &lt;property name="name" /&gt;
      &lt;property name="marks" /&gt;
      &lt;property name="email" /&gt;
      &lt;/class&gt;
      &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>Test class:</p>
  
  <pre><code>package test;
  import org.hibernate.Session;
  import org.hibernate.SessionFactory;
  import org.hibernate.Transaction;
  import org.hibernate.cfg.Configuration;
  public class Client {
  
      public static void main(String[] args) {
  
          // Student object state is transiant
  
          Configuration cfg=new Configuration();
  
          cfg.configure("resources/hibernate.cfg.xml");
  
          SessionFactory sf= cfg.buildSessionFactory();
  
      }
  }
  </code></pre>
  
  <p>If i delete the table and recreate then it creates the table with email id but if i drop email field only from table and then run again it doesn't alter the table with email field in Mysql database. please let me know what went wrong? and in eclipse console instead of alter it shows create table statement. ex: <code>ERROR: HHH000388: Unsuccessful: create table hibernate.student (sid integer not null, name varchar(255), marks integer, email varchar(255), rank integer, primary key (sid))</code></p>