hi, i know this is a bit of a weird request but i am in the beginning of porting over our current (huge) system to use AR so i need to keep working the same way as before so everything plays nice together.
In our current system we have lots of different types of objects which are modeled as a joined-sublass setup. And all of the objects are represented with there own table, but conceptually inherit from a single table "Object" which stores their type, version, name and a bunch of other stuff. i.e. Object (Id, Type, Name, Deleted, ... etc) Sub-Table1 (Id, specificPropertyA, specificPropertyB) Sub-Table2 (Id, specificPropertyC) (where the Ids in the subtables must match an id in the object table) however the way we handle deletes is that we never delete from the Object table, we merely set the value in the Deleted column to 1, however we delete all related rows from the other "sub-tables". so i need to some way to override how deleted work when i call ActiveRecordMediator.Delete ... to not remove rows from the Object table (but still remove them from the other tables) would the best/easiest/least fragile way to do this be to replace the DefaultDeleteEventListener, or create my own custom persister, or some other method? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
