[DATACMNS-318] Introduce dedicated annotation to enable exception translation Created: 19/Apr/13 Updated: 09/Sep/13 Resolved: 19/Apr/13
|Project:||Spring Data Commons|
|Fix Version/s:||1.6 M1|
|Reporter:||Oliver Drotbohm||Assignee:||Oliver Drotbohm|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
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.