What is a soft delete? Essentially you are setting a property of a
column to say that that row is not visible anymore, so instead of :
DELETE FROM User WHERE userid = 1234
You would do:
UPDATE User SET bDelete = true WHERE userid = 1234
So. That is a kinda syntax right there, but I am thinking on how you
would use this? i.e. in the reactor file? adding a softdelete()
method?
Some things I have been bouncing round my head are to define a column
that is a boolean and doing something like this
<object name="User">
<field name="bDelete" deletevalue="true" ignore="true" />
</object>
i.e. you wouldn't see the bDelete field, it would have a deletevalue
and thus most of your queries would have to have:
AND bDELETE <> "true" (or whatever)
I would like your ideas on this... as I am thinking it might have
fairly wide ranging implications (all the selects should ignore items
that are soft deleted right?)
(| am off to see how this works with Hibernate... might get some *inspiration*)
Mark Drew
Adobe Community Expert
Reactor ORM Project Manager
Blog: http://www.markdrew.co.uk/blog/
LinkedIn: http://www.linkedin.com/in/mdrew