|
From: Konstantin P. (JIRA) <nh...@gm...> - 2011-06-29 07:41:44
|
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
|