2

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...

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.