Grails
  1. Grails
  2. GRAILS-6630

Support detached transactions by DomainClass.withNewTransaction { ... }

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Persistence
    • Labels:
      None

      Description

      The current withTransaction method simply joins an existing transaction if there is one. There should be a withNewTransaction method that opens up a new transaction like @Transactional(propagation = Propagation.REQUIRES_NEW).

        Issue Links

          Activity

          Hide
          Daniel Henrique Alves Lima added a comment -

          I think there is also important information in GRAILS-7093 (duplicated issue).

          Show
          Daniel Henrique Alves Lima added a comment - I think there is also important information in GRAILS-7093 (duplicated issue).
          Hide
          Daniel Henrique Alves Lima added a comment - - edited
          Show
          Daniel Henrique Alves Lima added a comment - - edited I have attached a patch to the duplicated issue: http://jira.codehaus.org/secure/attachment/54289/HibernatePluginSupport.patch

            People

            • Assignee:
              Burt Beckwith
              Reporter:
              Luke Daley
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Last Reviewed:

                Development