I\'m using JPA (EclipseLink) and Spring. Say I have a simple entity with an auto-generated ID:
@Entity public class ABC implements Serializable { @Id
@Entity public class ABC implements Serializable { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; }
check that @GeneratedValue notation is there in your entity class.This tells JPA about your entity property auto-generated behavior