title: Spring boot and issue with ddl-auto
body: <p>am currently using spring-boot to create a web app using Spring MVC and JPA data however am getting an issue with property <strong>spring.jpa.hibernate.ddl-auto: create</strong> as it appears that on the first run my tables A , B , C are created correctly. Then i populate all the 3 tables and when I close the application and re-run it only Table A  still contains the populated data.</p>
  
  <p>The tables B and C are wiped out completely which is a bit strange .</p>
  
  <p>Any one know why this is the case?</p>
  
  <p>I have the following within my pom.xml as dependencies</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;0.5.0.M6&lt;/version&gt;
  &lt;/parent&gt;
  
  
  &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;5.1.26&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  &lt;/dependencyManagement&gt;
  
  &lt;dependencies&gt;
      &lt;!-- Web Dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
          &lt;artifactId&gt;thymeleaf-spring3&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;nz.net.ultraq.thymeleaf&lt;/groupId&gt;
          &lt;artifactId&gt;thymeleaf-layout-dialect&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
  
      &lt;!-- Persistence --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Test --&gt;
      &lt;!-- &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot&lt;/artifactId&gt;
          &lt;classifier&gt;tests&lt;/classifier&gt;
      &lt;/dependency&gt; --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
  
      &lt;/dependency&gt;
  
      &lt;!-- Database --&gt;
  &lt;!--&lt;dependency&gt; &lt;groupId&gt;org.hsqldb&lt;/groupId&gt; &lt;artifactId&gt;hsqldb&lt;/artifactId&gt; 
          &lt;scope&gt;runtime&lt;/scope&gt; &lt;/dependency&gt; --&gt;
  
           &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.26&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Validation Dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>spring.jpa.hibernate.ddl-auto</p>