title: Spring boot JPA: remove column on entity change
body: <p>I am try to create table in MySQL database from java class using spring-boot-starter-data-jpa. It work pretty well except when I change/remove column name in java class. Here an example:</p>
  
  <p>I have a class call "Staff" with 2 fields: id, name</p>
  
  <pre><code>@Id 
  @GeneratedValue(strategy = GenerationType.AUTO)
  @Column(name = "id")
  private int id;
  
  @Column(name = "name", length = 15)
  private String name;
  
  public Staff() {
  }
  // some setter and getter here
  </code></pre>
  
  <p>When I run my project, a "Staff" table generated exactly as I want with 2 columns: id, name. The problem is if I split "name" into "firstname" and "lastname" like this:</p>
  
  <pre><code>@Id 
  @GeneratedValue(strategy = GenerationType.AUTO)
  @Column(name = "id")
  private int id;
  
  @Column(name = "firstname", length = 15)
  private String firstname;
  
  @Column(name = "lastname", length = 15)
  private String lastname;
  
  public Staff() {
  }
  //some getter and setter here
  </code></pre>
  
  <p>The "Staff" table now contain 4 columns (id, name, firstname, lastname) instead of 3. Then I need to remove the "name" column myself. Is there anyway to get rid of it automatically?</p>