Solved

What is 'DB Exception Translation' meaning in spring

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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.

708 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

14 Experts available now in Live!

Get 1:1 Help Now