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)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.6, 5.4
    • Fix Version/s: 5.4
    • Component/s: 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

              • Assignee:
                thiagohp Thiago H. de Paula Figueiredo
                Reporter:
                johncoleman John Coleman
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: