Closed
Description
Chris Beams opened SPR-8076 and commented
Currently the only implementation of PersistenceExceptionTranslator
capable of translating HibernateException
types is AbstractSessionFactoryBean
and therefore its concrete subclasses, LocalSessionFactoryBean
and AnnotationSessionFactoryBean
. This works fine in an XML configuration context, but when configuring the container via @Configuration
classes, using a FactoryBean
type is discouraged. #12721 resolves this fundamental issue by introducing *SessionFactoryBuilder
types. As part of that effort, it's important that we factor out a HibernateExceptionTranslator
type that can be registered independently as a @Bean
.
Issue Links:
- Introduce (Annotation)SessionFactoryBuilder types [SPR-8066] #12721 Introduce (Annotation)SessionFactoryBuilder types ("depends on")
Referenced from: commits 3bb01ee, f5768fe, 6809b23
1 votes, 1 watchers