Reputation: 31
My code :
@Id @Column(name = "cust_admin_id" ) @SequenceGenerator(name = "Cust_Admin_seq" , sequenceName = "cust_Admin_id",allocationSize=1) @GeneratedValue(strategy = GenerationType.SEQUENCE , generator = "Cust_Admin_seq") private Integer custAdminId;
Please help as this is in production...
Upvotes: 2
Views: 5197
Reputation: 6080
you violate a constraint.
f.e. you insert the same dataset twice (same primary key, maybe different values) or you insert a dataset, that has no foreign key dataset connected to another table.
We need a bit more information
Upvotes: 2