org.springframework.dao.annotation

Class PersistenceExceptionTranslationPostProcessor

    • Constructor Detail

      • PersistenceExceptionTranslationPostProcessor

        public PersistenceExceptionTranslationPostProcessor()
    • Method Detail

      • setRepositoryAnnotationType

        public void setRepositoryAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
        Set the 'repository' annotation type. The default repository 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