Solved

What is 'DB Exception Translation' meaning in spring

Posted on 2013-02-05
2
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstChar challenge 13 149
eclipse java  build path 6 81
diffSum example 4 67
how to see all occupied ports on windows 10 laptop 15 94
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 …
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…
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.

710 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