-
1. Re: Multiple Revisions per Transaction
Adam Warski Oct 31, 2012 10:45 AM (in response to Jonathan Ferland)One problem here is that you can change an entity, then change it back in one transaction. How should that behave with Envers? The field effectively didn't change.
Anyway, contributions are always welcome, so if you'd like to approach that feature, go ahead
Adam
-
2. Re: Multiple Revisions per Transaction
Jonathan Ferland Oct 31, 2012 10:58 AM (in response to Adam Warski)Yes, actually, I don't see that as a problem. You could have two different back-to-back transactions where the net result is no net effect on an entity too.
I'm still not convinced whether this is a feature I will need or not, but I don't see how I could hurt. If you're okay with the idea and I do need it, then I will look into doing the work to add it, pending approval.
Cheers,
Jon
-
3. Re: Multiple Revisions per Transaction
Adam Warski Oct 31, 2012 1:39 PM (in response to Jonathan Ferland)Sure, sounds good, go ahead if you'd like
Adam
-
4. Re: Multiple Revisions per Transaction
Paulo Martins Nov 21, 2012 8:55 AM (in response to Jonathan Ferland)This would be a really nice feature. It will make my life a lot esier!
-
5. Re: Multiple Revisions per Transaction
Paulo Martins Mar 26, 2013 1:44 PM (in response to Adam Warski)Adam, I would like to develop this feature,
Do you think there should be an configuration in order to choose if Envers should do or not multiple revisions by transaction?
-
6. Re: Multiple Revisions per Transaction
Adam Warski Mar 29, 2013 9:15 AM (in response to Paulo Martins)Shouldn't it simply be an API call? Which would end (write) the current revision and start a new one?
Adam
-
7. Re: Multiple Revisions per Transaction
Paulo Martins Mar 30, 2013 8:17 PM (in response to Adam Warski)Humm, sorry, but I don't know how to do that.
May you give me a help please?
Thanks.
Paulo.
-
8. Re: Multiple Revisions per Transaction
Adam Warski Apr 2, 2013 4:12 PM (in response to Paulo Martins)Did you check out the code, run the tests? Were are you stuck? Did you read some of the code?
Maybe this could be sth like: AuditWriter.flushRevision? What do you think?
Also, if you'll start working on this, please create a JIRA issue to track the design, and so that others can comment.
Adam
-
9. Re: Multiple Revisions per Transaction
Jan Kuiper Aug 22, 2014 6:21 AM (in response to Jonathan Ferland)What is the status of this feature request? martins.paulo: Did you create a JIRA issue?
I need this feature for data-migration from a 'non-envers-database' to an 'envers-database' by using envers for creating the revisions properly.
-
10. Re: Multiple Revisions per Transaction
Paulo Martins Dec 18, 2014 1:35 PM (in response to Jan Kuiper)Hi Jan,
Sorry, I just saw your message today.
I haven't looked again at this, did you already started with this feature?
At this time, I have no time, but I hope I can look at that after April 2015.