My application uses large trees of domain objects, and for most of these objects I would like to save some basic information (updated, changed time, etc.). I have already added these properties and columns to my application.
I was going to encode the settings for these values ββin all the different constructors, etc., when it occurred to me that the persistence layer should handle this transparently.
But how?
I could do this from within my DAOs, but how to handle objects that are saved using cascading save? Is there a way to intercept the persist () method?
What is a good way to realize this opportunity?
source share