Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2029

Copy annotations from service implementation to proxy (was JPA annotations expose implementation details in service interfaces)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.3.6, 5.4
    • 5.4
    • tapestry-ioc

    Description

      The commit after and persistence context annotations are required on the service interface definition thereby exposing internal implementation details (see below example from docs). Details of implementation should be hidden at the interface level, both these annotations break the rule.

      Perhaps this code could appear in the Impl classes, or be provided in configuration somehow?

      public interface UserDAO {

      @CommitAfter
      @PersistenceContext(unitName = "DemoUnit")
      void add(User user);

      Attachments

        Issue Links

          Activity

            People

              thiagohp Thiago Henrique De Paula Figueiredo
              johncoleman John Coleman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: