Since 5.2, Hibernate's {{Transaction}} class has implemented JPA's {{EntityTransaction}}. But its implementation actually violates the spec in regards to how various exceptions are expected to be thrown when certain methods are called.
In most cases we feel the Hibernate handling is much better than the JPA spec required behavior. But in various cases (the TCK e.g.) we need to be able to comply with the spec expectation. Also it helps users in migrating between vendors
This case introduces a new setting to control this behavior: {{hibernate.jpa.compliance.transaction}}. Setting it to {{true}} enables the spec-compliant behavior. |
|