With default {quote} spring.jpa.properties.hibernate.id.new_generator_mappings=false {quote} generator and {quote} @GeneratedValue (default GenerationType.AUTO) {quote} strategy Hibernate autogenerate scheme:
create sequence hibernate_sequence start with 1 increment by 1; create table users (id integer not null, ...);
So, id is not autoincrement and JDBC script INSERT failed with {quote} org.h2.jdbc.JdbcSQLException:NULL not allowed for column "ID"; SQL statement {quote}
According [H2 grammar|https://stackoverflow.com/a/19100026/548473] {quote} create table users (id int default hibernate_sequence.nextval primary key); {quote} must be generated for id autoincremening |
|