日期:2014-05-20  浏览次数:20933 次

违反完整约束条件 (XWSERVER.FK_ORDERS_CAR) - 未找到父项
Hibernate: update XWSERVER.CLIENT_INFO set IMAGE_PATH=?, STATUS=?, CLIENT_ID=?, CLIENT_ACCOUNT=?, CLIENT_PSW=?, CLIENT_NAME=?, CLIENT_MOBILE_PHONE=?, CLIENT_CORP=?, CLIENT_ADDRESS=?, CLIENT_PHONE=?, CLIENT_EMAIL=?, RECOMMEND_DEGREE=?, CLIENT_SEX=?, REGIONAL=? where ID=?
Hibernate: select * from ( select car0_.ID as ID153_, car0_.CLIENTINFOID as CLIENTIN2_153_, car0_.SUNMONEY as SUNMONEY153_, car0_.CARSTATUS as CARSTATUS153_ from XWSERVER.CAR car0_ where car0_.CLIENTINFOID=? and car0_.CARSTATUS=1 ) where rownum <= ?
Hibernate: select clientinfo0_.ID as ID126_0_, clientinfo0_.IMAGE_PATH as IMAGE2_126_0_, clientinfo0_.STATUS as STATUS126_0_, clientinfo0_.CLIENT_ID as CLIENT4_126_0_, clientinfo0_.CLIENT_ACCOUNT as CLIENT5_126_0_, clientinfo0_.CLIENT_PSW as CLIENT6_126_0_, clientinfo0_.CLIENT_NAME as CLIENT7_126_0_, clientinfo0_.CLIENT_MOBILE_PHONE as CLIENT8_126_0_, clientinfo0_.CLIENT_CORP as CLIENT9_126_0_, clientinfo0_.CLIENT_ADDRESS as CLIENT10_126_0_, clientinfo0_.CLIENT_PHONE as CLIENT11_126_0_, clientinfo0_.CLIENT_EMAIL as CLIENT12_126_0_, clientinfo0_.RECOMMEND_DEGREE as RECOMMEND13_126_0_, clientinfo0_.CLIENT_SEX as CLIENT14_126_0_, clientinfo0_.REGIONAL as REGIONAL126_0_, clientinfo0_.REGISTER_TIME as REGISTER16_126_0_, clientinfo0_.LAST_TIME as LAST17_126_0_ from XWSERVER.CLIENT_INFO clientinfo0_ where clientinfo0_.ID=?
Hibernate: insert into XWSERVER.ORDERS (CLIENTINFOID, CARID, ORDERNO, ORDERDATE, ORDERSTATUS, ID) values (?, ?, ?, ?, ?, ?)
2008-4-18 16:56:28 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 2291, SQLState: 23000
2008-4-18 16:56:28 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: ORA-02291: 违反完整约束条件 (XWSERVER.FK_ORDERS_CAR) - 未找到父项关键字

2008-4-18 16:56:28 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 2291, SQLState: 23000
2008-4-18 16:56:28 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: ORA-02291: 违反完整约束条件 (XWSERVER.FK_ORDERS_CAR) - 未找到父项关键字

2008-4-18 16:56:28 org.hibernate.event.def.AbstractFlushingEventListener performExecutions
严重: Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:570)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:651)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:621)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:311)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:117)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy35.addOrder(Unknown Source)