Solved

What is 'DB Exception Translation' meaning in spring

Posted on 2013-02-05
2
222 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mergeTwo  challenge 13 84
bunnyEars2 challenge 6 107
parentbit challenge 3 74
servlet doXXX methods 3 38
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
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.

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now