[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 Wed Jul 15 09:34:40 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.