This is my experience so far.
If transactional is set to true, Grails will always do a real commit when the public method exits. Even using save(flush:true), it won't commit to database until method exits.
Using withTransaction to scope block of code for which you want to commit it when block ends. But be sure to change transactional to false. I think transactional=true will override withTransaction, i.e. it will still try to commit when the method exits.
Friday, October 1, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment