title: Error executing DDL "create table in Spring Data JPA?
body: <p>I want to save some data coming from the request. for that, I created some entity classes. but why I et this exception?</p>
  
  <pre><code>Error executing DDL "create table body_datum (body_datum_id integer not null, key varchar(255), value varchar(255), value_type varchar(255), primary key (body_datum_id)) engine=InnoDB" via 
  </code></pre>
  
  <p>Here are my properties.</p>
  
  <pre><code>spring.datasource.url= jdbc:mysql://localhost:3306/loadtestdb?useUnicode=true&amp;useJDBCCompliantTimezoneShift=true&amp;useLegacyDatetimeCode=false&amp;serverTimezone=UTC
  spring.datasource.username=root
  spring.datasource.password=
  spring.jpa.hibernate.ddl-auto=create
  </code></pre>
  
  <p>Here is my model classes.</p>
  
  <pre><code>@Data
  @Entity
  public class BodyDatum {
  
      @Id
      @GeneratedValue
      private Integer bodyDatumId;
  
      private String key;
  
      private String value;
  
      private String valueType;
  }
  </code></pre>
  
  <p>Product class like this </p>
  
  <pre><code>@Data
  @Entity
  public class Product {
  
      @Id
      @GeneratedValue(strategy= GenerationType.AUTO)
      private Long pId;
      private String productName;
      private int pQty;
      private int price;
  
      @ManyToOne
      @JoinColumn(name = "customer_id")
      private Customer customer;
  }
  </code></pre>
  
  <p>In the database, the Product table has created.</p>
  
  <p>Why get such an error?</p>
  
  <p>Thanks.</p>