Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8457901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:55:56+00:00 2026-06-10T12:55:56+00:00

I was reading Spring with annotation part and I came across @Repository annotation I

  • 0

I was reading Spring with annotation part and I came across @Repositoryannotation
I read that @Repository beans differ from @Component beans in the sense that they are eligible for persistence exception translation.

Can somebody please elaborate what is meant by persistence exception translation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:55:57+00:00Added an answer on June 10, 2026 at 12:55 pm

    Persistence Exception Translation is the process of converting low level persistence exceptions into high level Spring exceptions.

    From the SpringSource Site:

    Common data access exceptions. Spring can wrap exceptions from your
    O/R mapping tool of choice, converting them from proprietary
    (potentially checked) exceptions to a common runtime
    DataAccessException hierarchy. This allows you to handle most
    persistence exceptions, which are non-recoverable, only in the
    appropriate layers, without annoying boilerplate catches/throws, and
    exception declarations. You can still trap and handle exceptions
    anywhere you need to. Remember that JDBC exceptions (including DB
    specific dialects) are also converted to the same hierarchy, meaning
    that you can perform some operations with JDBC within a consistent
    programming model.

    One of the major benefits of this is that exceptions are turned into Runtime Exceptions, in effect you are not required to add the throws declaration to your methods signature.

    http://static.springsource.org/spring/docs/2.5.x/reference/orm.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was reading Spring 3.0 documentation and I came to the sentence - Annotation
Hi I am reading Spring in Action 3 book and I came across this
I was reading Apress Beginning Spring 2 From Novice to Professional , and I
Here are the questions resulted from reading the Spring Reference, please help. (1) Do
From a lot of what I've been reading, it seems that you always would
I was just reading an article that showed the following Spring Security XML configuration:
I am currently studying Spring. While reading a Spring book, I met a part
I've been reading about Spring and although it's claimed to be a less complex
I am reading Pro Spring 2.5 and I have a question to chapter 2
I'm reading the book Spring Recipes right now, and am puzzled by one thing:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.