JDBC is acronym of Java database connectivity. It is used to connect your application to the database and transactions . It is an open source Java api. Hibernate is also used for connect your application to database and to do database related transactions but with different approach. It has a object relationship library which mapped the tables
Another suggestion is to check that you use a valid type for the auto-generated field. Remember that it doesn't work with String, but it works with Long: @Id @GeneratedValue (strategy=GenerationType.AUTO) public Long id; @Constraints.Required public String contents; The above syntax worked for generating tables in MySQL using Hibernate as a JPA
YGDpz.