PersistenceExceptionTranslationPostProcessor function ( ) { return new PersistenceExceptionTranslationPostProcessor ( ) ; }
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 . concode_field_sep LocalContainerEntityManagerFactoryBean entityManagerFactory concode_elem_sep Environment env concode_elem_sep DataSource dataSource concode_field_sep LocalContainerEntityManagerFactoryBean entityManagerFactory concode_elem_sep JpaTransactionManager transactionManager concode_elem_sep DataSource dataSource