List of usage examples for org.springframework.dao.annotation PersistenceExceptionTranslationPostProcessor PersistenceExceptionTranslationPostProcessor
PersistenceExceptionTranslationPostProcessor
From source file:org.fon.documentmanagementsystem.config.AppConfig.java
@Bean public PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor() { return new PersistenceExceptionTranslationPostProcessor(); }
From source file:org.drugis.trialverse.config.MainConfig.java
@Bean(name = "petppTrialverse") public PersistenceExceptionTranslationPostProcessor exceptionTranslation() { return new PersistenceExceptionTranslationPostProcessor(); }
From source file:org.springsource.greenbeans.examples.edawithspring.etailer.store.StoreConfiguration.java
@Bean public PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor() { PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor = new PersistenceExceptionTranslationPostProcessor(); persistenceExceptionTranslationPostProcessor.setRepositoryAnnotationType(Service.class); return persistenceExceptionTranslationPostProcessor; }
From source file:com.dhenton9000.birt.configs.DatabaseConfig.java
/** * PersistenceExceptionTranslationPostProcessor is a bean post processor * which adds an advisor to any bean annotated with Repository so that any * platform-specific exceptions are caught and then rethrown as one Spring's * unchecked data access exceptions (i.e. a subclass of * DataAccessException)./*from w ww . j a v a 2 s .co m*/ * * @return */ @Bean public PersistenceExceptionTranslationPostProcessor exceptionTranslation() { return new PersistenceExceptionTranslationPostProcessor(); }
From source file:com.fantasy.AggregatorConfig.java
@Bean public PersistenceExceptionTranslationPostProcessor exceptionTranslation() { return new PersistenceExceptionTranslationPostProcessor(); }
From source file:com.devnexus.ting.config.PersistenceConfig.java
@Bean
PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor() {
return new PersistenceExceptionTranslationPostProcessor();
}
From source file:org.drugis.addis.config.MainConfig.java
@Bean(name = "petppAddisCore") public PersistenceExceptionTranslationPostProcessor exceptionTranslation() { return new PersistenceExceptionTranslationPostProcessor(); }
From source file:cn.newgxu.lab.core.config.SpringBeans.java
@Bean public PersistenceExceptionTranslationPostProcessor exceptionTranslator() { return new PersistenceExceptionTranslationPostProcessor(); }