/// <summary>
 /// Initializes a new instance of the <see cref="PersistenceExceptionTranslationAdvisor"/> class.
 /// </summary>
 /// <param name="objectFactory">The object factory to obtain all IPersistenceExceptionTranslators from.</param>
 /// <param name="repositoryAttributeType">Type of the repository attribute to check for.</param>
 public PersistenceExceptionTranslationAdvisor(IListableObjectFactory objectFactory, Type repositoryAttributeType)
 {
     this.advice = new PersistenceExceptionTranslationInterceptor(objectFactory);
     this.pointcut = new AttributeMatchingPointcut(repositoryAttributeType, true);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PersistenceExceptionTranslationAdvisor"/> class.
 /// </summary>
 /// <param name="persistenceExceptionTranslator">The persistence exception translator to use.</param>
 /// <param name="repositoryAttributeType">Type of the repository attribute to check for.</param>
 public PersistenceExceptionTranslationAdvisor(IPersistenceExceptionTranslator persistenceExceptionTranslator,
     Type repositoryAttributeType)
 {
     this.advice = new PersistenceExceptionTranslationInterceptor(persistenceExceptionTranslator);
     this.pointcut = new AttributeMatchingPointcut(repositoryAttributeType, true);
 }