Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-318

Introduce dedicated annotation to enable exception translation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6 M1
    • Component/s: Repositories
    • Labels:
      None

      Description

      It seems to puzzle quite a lot of people that enabling Spring Data repositories activates persistence exception translation for all types annotated with @Repository. The PersistenceExceptionTranslationPostProcessor we register is configured to be applied to all beans annotated with @Repository by default. We should introduce a dedicated annotation to be used on Spring Data repository implementations to minimize the effect of the post processor to the Spring Data beans only.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              olivergierke Oliver Drotbohm
              Last updater:
              Trevor Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: