Skip to content

Introduce HibernateExceptionTranslator [SPR-8076] #12731

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 3bb01ee, f5768fe, 6809b23

1 votes, 1 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions