的拋出UnsupportedOperationException我用了級聯=「全刪除,孤兒」,在*的.hbm.xml文件我得到以下異常,你可以請告訴如何解決這個關於休眠
RegisteredSynèWTRN0074E:異常從before_completion同步操作抓到:java.lang.UnsupportedOperationException 在org.hibernate.transaction.WebSphereExtendedJTATransactionLookup $ TransactionManagerAdapter $ TransactionAdapter.setRollbackOnly(WebSphereExtendedJTATransactionLookup.java:211) 在org.hibernate.transaction.CacheSynchronization.setRollbackOnly(CacheSynchronization.java:73 ) at org.hibernate.transaction.CacheSynchronization.beforeCompletion(CacheSynchronization.java:63) 在org.hibernate.transaction.WebSphereExtendedJTATransactionLookup $ 1.invoke(WebSphereExtendedJTATransactionLookup.java:142) 在$ Proxy1.beforeCompletion(來源不明) 在com.ibm.ws.jtaextensions.SynchronizationCallbackWrapper.beforeCompletion(SynchronizationCallbackWrapper.java:65) at com.ibm.ws.Transaction.JTA.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:171) at com.ibm.ws.Transaction.JTA.TransactionImpl.prePrepare(TransactionImpl.java:2109) at com.ibm.ws .Transaction.JTA.TransactionImpl.stage1CommitProcessing(TransactionImpl.java:1538) at com.ibm.ws.Transaction.JTA.TransactionImpl.commit(TransactionImpl.java:1372) at com.ibm.ws.Transaction.JTA.TranManagerImpl .commit(TranManagerImpl.java:231) at com.ibm.ws.Transaction.JTA.TranManagerSet.commit(TranManagerSet.java:156) at com.ibm.ejs.csi.TranStrategy.commit(TranStrategy.java:716) at com.ibm.ejs.csi .TransStrategy.postInvoke(TranStrategy.java:167) at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:564) at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3798 ) 在com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:3620)
你已經問過這個問題(http://stackoverflow.com/questions/4667808/regarding-the-unsupportedoperationexception-in-hibernate)。再次提問並不會幫助你的情況。 – skaffman 2011-01-12 12:47:57