Is it possible to manage database transactions in Mapper? or does it
manage them automatically?
For instance, I have a Restful service that performs some database
actions. If the last action fails for some reason in some point and I
respond to the caller with an error, is it possible to rollback the
previous database changes?
Thanks in advance,
GA
Looks like "S.addAround(DB.buildLoanWrapper)" has no effect.
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Yes, it's quite clear.I updated the project on git hub, switched to H2 & added a README file. I hope it's now more convenient to try it
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Yes, it's quite clear.I updated the project on git hub, switched to H2 & added a README file. I hope it's now more convenient to try it
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Igor,Thanks for finding this nasty little (okay, big) bug.I've created a ticket and a patch: https://github.com/lift/framework/pull/1235Turns out the issue was broader than your example and I've updated the example code to test both stateless and stateful issues as well as S.addAround and the new LiftRule.allAround: https://github.com/dpp/Lift-Mapper-Transaction-Test
The fix will be in 2.5-SNAPSHOT in the next few days (once the patch has been reviewed)
David,thank you a lot for your feedback!is there a chance for the fix to appear in some bugfix release of lift 2.4?
Just to have some stable version of lift to use as soon as fix is done.