org.springframework.dao.annotation

Class PersistenceExceptionTranslationAdvisor

    • Constructor Detail

      • PersistenceExceptionTranslationAdvisor

        public PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator,
                                                      java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
        Create a new PersistenceExceptionTranslationAdvisor.
        Parameters:
        persistenceExceptionTranslator - the PersistenceExceptionTranslator to use
        repositoryAnnotationType - the annotation type to check for