Hi guys,
lately I ran into an issue when I'm using Interceptors derived from EmptyInterceptor to generate some properties (i.e. Created and LastModified) on my entities. For some use cases I don't want to regenerate those values so I have transient (not persistent) property and in Interceptor I'm checking whether I should or should not generate those values. However after calling Session.Merge() those properties are always restored with default values (as NHibernate is not aware of them so it's not mapped). I found that DefaultMergeEventListener is responsible for mapping properties but I'm not able to find a way to trigger mapping of some specific Transient values. I tried some specific MergeEventsListener but that's already late. Do you have any idea how to solve this issue? Thanks in advance. Same question: https://github.com/nhibernate/nhibernate-core/discussions/2658 -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nhusers/2d5080d1-4246-4377-9487-2331da88ba4dn%40googlegroups.com.
