Write interceptor it doesn't need a setter :)

On 16 jan, 20:24, epitka <[email protected]> wrote:
> How would one go about updating a ModifiedDate and CreatedDate columns
> if I do not want to expose setters on my class. So when record is
> being persisted it should NH should auto set these two properties to
> Now() and so that ModifiedDate is always updated and CreatedDate only
> when record is new. Is there a way to do that.
>
> I know I can write interceptors etc. but I do not want these to have
> setters at all.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to