Skip to content

Introduce HibernateExceptionTranslator [SPR-8076] #12731

Closed

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions