Hi Miro, There is no spec-supported way to do this. We have discussed adding this sort of a feature directly to OpenJPA in the past, but have not yet implemented it. You could do this "on your own" in a custom ClassStrategy, but it's not particularly straightforward to do so unfortunately.
Can you describe what your requirements are in a bit more detail, in particular around relationship handling? -Patrick On Nov 5, 2007 11:56 AM, Miroslav Nachev <[EMAIL PROTECTED]> wrote: > Hi, > > In one entity class I don't want to delete the records on delete operations. > Instead I would like to mark them as deleted using some flag. How can I do > that using some of the callback methods like PrePersist, ProPersist, > PreRemove or PostRemove? > > The similar for Update. Instead to update the records I would like to > increase the number of versions for this record and to insert new record on > the place of the old. Which method to use PreUpdate or PostUpdate. > > For both of the above how to stop the real delete/update operations? > > > Regards, > Miro. > -- Patrick Linskey 202 669 5907
