Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce dedicated annotation to enable exception translation [DATACMNS-318] #791

spring-projects-issues opened this issue Apr 19, 2013 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Apr 19, 2013

Oliver Drotbohm opened DATACMNS-318 and commented

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

Issue Links:

  • DATAJPA-330 @EnableJpaRepositories activates exception translation for @Repository classes not in basePackages
    ("is depended on by")

  • DATAJPA-112 jpa:repositories changes @Repository objects into proxies. Autowiring fails

  • DATAJPA-221 <jpa:repositories base-package="..." /> hides legacy @Repository annotated beans

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.