本文整理汇总了Java中org.springframework.orm.hibernate4.HibernateExceptionTranslator类的典型用法代码示例。如果您正苦于以下问题:Java HibernateExceptionTranslator类的具体用法?Java HibernateExceptionTranslator怎么用?Java HibernateExceptionTranslator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HibernateExceptionTranslator类属于org.springframework.orm.hibernate4包,在下文中一共展示了HibernateExceptionTranslator类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: exceptionTranslation
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public HibernateExceptionTranslator exceptionTranslation() {
return new HibernateExceptionTranslator();
}
示例2: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例3: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例4: exceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public HibernateExceptionTranslator exceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例5: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator(){
return new HibernateExceptionTranslator();
}
示例6: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator()
{
return new HibernateExceptionTranslator();
}
示例7: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例8: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
/**
* Hibernate 에외를 변환하는 {@link HibernateExceptionTranslator} 를 Spring 의 ApplicationContext에 등록합니다.
*/
// NOTE: 이거 꼭 정의해야 합니다.
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例9: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public PersistenceExceptionTranslator hibernateExceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例10: exceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public PersistenceExceptionTranslator exceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例11: persistenceExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
@Bean
public PersistenceExceptionTranslator persistenceExceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例12: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
/**
* Implementation of {@code PersistenceExceptionTranslator} used to convert
* Hibernate Exceptions ({@code HibernateException}) into Spring Data Access'
* own exception hierarchy, based on {@code DataAccessException}.
*
* @return
* The {@code HibernateExceptionTranslator} used for translation.
*/
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
return new HibernateExceptionTranslator();
}
示例13: hibernateExceptionTranslator
import org.springframework.orm.hibernate4.HibernateExceptionTranslator; //导入依赖的package包/类
/**
* Creates a new HibernateExceptionTranslator.
*
* @return a HibernateExceptionTranslator.
*/
@Bean
public HibernateExceptionTranslator hibernateExceptionTranslator() {
return new HibernateExceptionTranslator();
}