Bean post-processor that automatically applies persistence exception
translation to any bean that carries the
org.springframework.stereotype.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).
public void setRepositoryAnnotationType(Class<? extends Annotation> repositoryAnnotationType)(Code)
Set the 'repository' annotation type.
The default required annotation type is the
Repository annotation.
This setter property exists so that developers can provide their own
(non-Spring-specific) annotation type to indicate that a class has a
repository role.
Parameters: repositoryAnnotationType - the desired annotation type