给新入行的开发人员的指导
今天看到一个新人在问开发上的问题,我在网上回复了他,并将此作为案例与各位分享。
12:07:29,187 WARN JDBCExceptionReporter:100 - SQL Error: 2290, SQLState: 2300012:07:29,187 ERROR JDBCExceptionReporter:101 - ORA-02290: check constraint (TEST.SYS_C0038415) violated12:07:29,187 WARN JDBCExceptionReporter:100 - SQL Error: 2290, SQLState: 2300012:07:29,187 ERROR JDBCExceptionReporter:101 - ORA-02290: check constraint (TEST.SYS_C0038415) violated12:07:29,265 ERROR AbstractFlushingEventListener:324 - Could not synchronize database state with sessionorg.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch updateat org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:94)at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)...