What is 'DB Exception Translation' meaning in spring

I heard that using '@Repository' is for 'DB Exception Translation'.

I couldn't understand this.

Please explain me in easy way.

Thank in advance.
gamjaradioAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Sathish David Kumar NConnect With a Mentor ArchitectCommented:
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
All Courses

From novice to tech pro — start learning today.