Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2256

Provide an annotation to support automatic committing of the transaction after a component or service method invocation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.11
    • 5.0.12
    • tapestry-hibernate
    • None

    Description

      It would be nice to have an annotation, @CommitAfter, that could be placed on a service interface method.

      A decorator could recognize methods with such annotations, and use the HibernateSessionManager to commit the transaction after invoking the method.

      Currently, you must inject the HSM directly and invoke commit() on it.

      Attachments

        1. TAPESTRY-2256.patch
          14 kB
          Igor Drobiazko

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: