Assert.notNull(pet,"PersistenceExceptionTranslator must not be null");
this.persistenceExceptionTranslator=pet;
}
@ -115,19 +118,37 @@ public class PersistenceExceptionTranslationInterceptor
@@ -115,19 +118,37 @@ public class PersistenceExceptionTranslationInterceptor
thrownewIllegalArgumentException(
"Cannot use PersistenceExceptionTranslator autodetection without ListableBeanFactory");
@ -140,10 +161,6 @@ public class PersistenceExceptionTranslationInterceptor
@@ -140,10 +161,6 @@ public class PersistenceExceptionTranslationInterceptor
// Find all translators, being careful not to activate FactoryBeans.
@ -151,21 +168,4 @@ public class PersistenceExceptionTranslationInterceptor
@@ -151,21 +168,4 @@ public class PersistenceExceptionTranslationInterceptor
@ -66,8 +53,8 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase
@@ -66,8 +53,8 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase
@ -84,8 +71,15 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase
@@ -84,8 +71,15 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase
@ -99,6 +93,7 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase
@@ -99,6 +93,7 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase
fail("No translation");
}
@Repository
publicstaticclassRepositoryWithoutInterface{
@ -106,19 +101,38 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase
@@ -106,19 +101,38 @@ public class PersistenceExceptionTranslationPostProcessorTests extends TestCase