[DATACMNS-318] Introduce dedicated annotation to enable exception translation Created: 19/Apr/13  Updated: 09/Sep/13  Resolved: 19/Apr/13

Status: Closed
Project: Spring Data Commons
Component/s: Repositories
Affects Version/s: None
Fix Version/s: 1.6 M1

Type: Improvement Priority: Minor
Reporter: Oliver Drotbohm Assignee: Oliver Drotbohm
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
is depended on by DATAJPA-330 @EnableJpaRepositories activates exce... Resolved
is related to DATAJPA-112 jpa:repositories changes @Repository ... Closed
is related to DATAJPA-221 <jpa:repositories base-package="..." ... Closed
Last updater: Trevor Marshall


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.

Generated at Mon Jan 27 06:20:06 UTC 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.