Solved

What is 'DB Exception Translation' meaning in spring

Posted on 2013-02-05
2
225 Views
Last Modified: 2013-02-11
I heard that using '@Repository' is for 'DB Exception Translation'.

I couldn't understand this.

Please explain me in easy way.

Thank in advance.
0
Comment
Question by:gamjaradio
2 Comments
 
LVL 8

Assisted Solution

by:vsudip
vsudip earned 250 total points
ID: 38855283
0
 
LVL 20

Accepted Solution

by:
Sathish David  Kumar N earned 250 total points
ID: 38858427
If are  you useing  Hibernate, for perstiance purpose we use JAP,JDO or DAO  to handle the persistence technology's native exception classes.

DAO is the main class to handle thoses expection this called  expection translation

@Repository meaning is

Use @Repository for all your stored proc DB connections
If you do not use the proper annotations, you may face commit exceptions overridden by rollback transactions. You will see exceptions during stress load test that is related to roll back JDBC transactions.
stereotype for persistence layer                    |
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Modeling a class in java 5 55
JAVA part two 5 70
why cannot we forward request once the response is committed 2 42
jsp login check 12 32
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question