[英]Im getting "com.ibm.db2.jcc.am.SqlIntegrityConstraintViolationException: DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505
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... 正在生产中,请提供帮助...
you violate a constraint. 您违反了约束。
fe 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 我们需要更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.