From: Roger (JIRA) <nh...@gm...> - 2011-06-29 11:25:56
|
[ http://216.121.112.228/browse/NHE-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21337#action_21337 ] Roger commented on NHE-13: -------------------------- Are you sure the problem is caused by DTC tran or do you have the same problem using plain NH transaction + Flushmode.auto? If possible, please attach an isolated unit test for your problem. Thanks. > Updated entity not being versioned DTC/AutoFlush > ------------------------------------------------ > > Key: NHE-13 > URL: http://216.121.112.228/browse/NHE-13 > Project: NHibernate.Envers > Issue Type: Bug > Components: Core > Affects Versions: 1.0 CR 1 > Reporter: Konstantin Polyzois > Priority: Minor > > There seems to be a problem with versioning when doing an update. I am using FlushMode.AUTO and System.Transactions.Transaction.Current (DTC transactions). > The sequence is: > 1 I commit my trans > 2 DTC calls hibernate > 3 Hibernate checks if there are any doBeforeTransactionCompletion > 4 Autoflush is run which updates my Entity > 5 NHibernate calls OnPostUpdate listeners > 6 Envers registers for doBeforeTransactionCompletion > If I add a flush before I commit everything works as expected Envers registers earlier and hence will be called at the right momment. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |