org.springframework.orm.hibernate4.HibernateExceptionTranslator Java Examples

The following examples show how to use org.springframework.orm.hibernate4.HibernateExceptionTranslator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RepositorySpringConfiguration.java    From personal_book_library_web_project with MIT License 4 votes vote down vote up
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
	return new HibernateExceptionTranslator();
}
 
Example #2
Source File: DatabaseConfiguration.java    From activiti6-boot2 with Apache License 2.0 4 votes vote down vote up
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
    return new HibernateExceptionTranslator();
}
 
Example #3
Source File: RepositoryConfiguration.java    From java-platform with Apache License 2.0 4 votes vote down vote up
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
	return new HibernateExceptionTranslator();
}
 
Example #4
Source File: PersistenceConfig.java    From AIDR with GNU Affero General Public License v3.0 4 votes vote down vote up
@Bean
public PersistenceExceptionTranslator hibernateExceptionTranslator() {
	return new HibernateExceptionTranslator();
}