Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] really removing a DB record
[CDO] really removing a DB record [message #943164] Sun, 14 October 2012 07:54 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,

From the CDO API, how do I remove an object from the DB ? Currently a deleting an objects, sets the object revision a negative value, but keeps the DB record it in the DB. We use DBStore, and have auditing turned off.

Thank you, Christophe
Re: [CDO] really removing a DB record [message #945897 is a reply to message #943164] Mon, 15 October 2012 19:15 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Eike, are you there?
Could you please point me in the right direction for this question?
Is the behaviour CDOStore dependent?
Re: [CDO] really removing a DB record [message #946535 is a reply to message #945897] Tue, 16 October 2012 06:35 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 15.10.2012 21:15, schrieb Christophe Bouhier:
> Eike, are you there?
Yes, busy preparing my new slides for a 1 hour talk at the EclipseCon next week :P

Sorry for the unusal answer delays this and next week!!

> Could you please point me in the right direction for this question? Is the behaviour CDOStore dependent?
It's a DBStore "bug":

351068: [DB] Consider deleting old revisions when audits disabled
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351068

I really want to work on it soon.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] really removing a DB record [message #946828 is a reply to message #946535] Tue, 16 October 2012 14:48 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Thx Eike.
It seems in the bug, there are different observations.
In my case, I use this mapping:

<mappingStrategy type="horizontal"> <!-- callout -->
<property name="qualifiedNames" value="true"/>
<property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
<property name="toOneReferences" value="LIKE_ATTRIBUTES"/>


Does it make any difference for the bug?
rgds Christophe
Re: [CDO] really removing a DB record [message #946858 is a reply to message #946828] Tue, 16 October 2012 15:10 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 16.10.2012 16:48, schrieb Christophe Bouhier:
> Thx Eike. It seems in the bug, there are different observations. In my case, I use this mapping:
> <mappingStrategy type="horizontal">
IIRC this is a delegating mapping strategy that looks at the repository's auditin/branching mode and sets up a delegate
accordingly. You can check with a breakpoint in HorizontalMappingStrategy.doActivate().

> <property name="qualifiedNames" value="true"/>
> <property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
> <property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
>
>
> Does it make any difference for the bug?
No ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:[CDO] How to preserve database when model changes?
Next Topic:Validating a model instance with the generated XSD Schema
Goto Forum:
  


Current Time: Sat Apr 20 03:18:05 GMT 2024

Powered by FUDForum. Page generated in 0.03286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top