Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329799

Summary: [Hibernate] Support ensureReferentialIntegrity configuration property
Product: [Modeling] EMF Reporter: Michal Tkacz <Michal.Tkacz>
Component: cdo.coreAssignee: Martin Taal <mtaal>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3 CC: stepper
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michal Tkacz CLA 2010-11-09 09:50:51 EST
This option was supported in CDO 3.0 (see bug 316434), but using it in 4.0 leads to UnsupportedOperationException:

java.lang.UnsupportedOperationException
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.queryXRefs(HibernateStoreAccessor.java:470)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext$XRefContext.getXRefs(TransactionCommitContext.java:1208)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.checkXRefs(TransactionCommitContext.java:882)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:400)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:40)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:342)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:199)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:127)
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:84)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:90)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:316)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:63)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:63)
... 5 more

because queryXRefs has no implementation (see bug 329796).
Comment 1 Eike Stepper CLA 2010-11-10 07:04:21 EST
The option has been introduced to the core in 3.0, the DBStore supports it since some time after that (4.0). AFAIK the HibernateStore has never supported it. Changing to enhancement.
Comment 2 Eike Stepper CLA 2011-06-23 03:59:23 EDT
Moving all open enhancement requests to 4.1
Comment 3 Eike Stepper CLA 2012-08-14 22:58:06 EDT
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Comment 4 Martin Taal CLA 2012-11-24 09:06:55 EST
This issue is quite old, all testcases currently pass for the hibernate store and similar issues as this one has been solved.

Assume that it has been fix. Please re-open if you think/notice otherwise.

gr. Martin