jnapier wrote:
I have the same situation with the simple audit fields. What I did is create an Audit component in each of my mappings that reflects the audit properties.
So I access the audit fields like this. user.Audit.DateCreated. Of course you don't have to take the component route if you want your audit data accessible right oiff of your root object.
Regardless each class that has the audit data implements the IAuditable interface.
I then use an interceptor to update the appropriate fields automatically when a persistence operation is performed.
I am new to NHibernate. I am trying to do the same, can you please post some code snippets or link to a sample implementation
Cheers