Skip to content

Misleading exception message for using JPA with custom IsolationLevels [SPR-8325] #12974

Closed

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-8325 and commented

When trying to use JPA with custom transaction isolation levels and no specfic JPA dialect configured one will get an exception saying:

Standard JPA does not support custom isolation levels - use a special JpaDialect for your JPA implementation

Unfortunately all our provided implementations do not support custom isolation levels at all. So even configuring a HibernateJpaDialect for example ends up with the same exception. This is not that of a big deal but might lead to quite some time spending on tracing an asssumed bug in the configuration where there actually is none.


Affects: 3.0.5, 3.1 M1

Issue Links:

Backported to: 3.2.10

2 votes, 4 watchers

Activity

  1. spring-projects-issues commented on May 10, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Joris Kuipers commented

    In addition to adding a better message that explains that we don't support this, it would be preferable to actually support this in the various dialects obviously. I'm assuming this issue can be used to track that: if not, then please say so and I'll create a separate issue for that.

  2. added
    in: data
    status: backported
    type: enhancement
    on Jan 11, 2019
  3. added this to the 4.0.6 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: datastatus: backportedtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions