| Hi,I'm trying to implement a special database behavior where when an object is deleted it isn't really removed from the database but a special column on the object is updated to indicate that this object is no longer present.
 The problem is that I need this "deleted" attribute to be cascaded to all its "owned" sub-objects.
 Example: If I have a "Item" object and it contains a container of "Bid" objects I need the "deleted" attribute to be enabled on all bids if the Item object is deleted.
 Since this is a pattern on all my objects I am trying to solve this in a generic way.
 If anyone has an idea on how such a thing can be implemented it will be great help.
 I've implemented instead of the "remove" method of Hibernate a private "MyRemove" which updates the object's "deleted" column but I need a way to find all the sub-objects like the Hibernate cascading feature does.
 Thanks in advance,
 Avner
 
 
 |