In your domain or Model object annotate the id field as below and it should work. For me the GenerationType.AUTO failed
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
In your domain or Model object annotate the id field as below and it should work. For me the GenerationType.AUTO failed
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;