# Package org.springframework.dao.annotation

@NonNullApi @NonNullFields package org.springframework.dao.annotation
Annotation support for DAOs. Contains a bean post-processor for translating persistence exceptions based on a repository stereotype annotation.

Related Packages
Package
Description
org.springframework.dao
Exception hierarchy enabling sophisticated error handling independent of the data access approach in use.
org.springframework.dao.support
Support classes for DAO implementations, providing miscellaneous utility methods.
Classes
Class
Description
PersistenceExceptionTranslationAdvisor
Spring AOP exception translation aspect for use at Repository or DAO layer level.
PersistenceExceptionTranslationPostProcessor
Bean post-processor that automatically applies persistence exception translation to any bean marked with Spring's @`Repository` annotation, adding a corresponding `PersistenceExceptionTranslationAdvisor` to the exposed proxy (either an existing AOP proxy or a newly generated proxy that implements all of the target's interfaces).