Branch: refs/heads/master
Home:
https://github.com/hibernate/hibernate-orm
Commit: 14f7b49b79a5f3a6092a0088bd18447263a87464
https://github.com/hibernate/hibernate-orm/commit/14f7b49b79a5f3a6092a008...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2019-07-22 (Mon, 22 Jul 2019)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/envers/Envers.adoc
M
hibernate-envers/src/main/java/org/hibernate/envers/configuration/EnversSettings.java
M
hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/GlobalConfiguration.java
M
hibernate-envers/src/main/java/org/hibernate/envers/query/internal/impl/EntitiesAtRevisionQuery.java
A
hibernate-envers/src/test/java/org/hibernate/envers/test/integration/auditReader/FindByRevisionExactMatchOptionTest.java
Log Message:
-----------
HHH-13500 Fix audit strategy sub-query return incorrect results
In order to maintain backward compatibility with long-standing behavior,
this introduces a new configuration option which can be toggled to have
AuditReader#find implementations adhere to returning an exact match on
revision-number rather than one which is less-than or equal-to the
provided argument.
So a new configuration option org.hibernate.envers.find_by_revision_exact_match
provides users with the ability to be able to force this new behavior
while allowing legacy behavior to remain the default.