10664 - Prepare Envers for 5.2 - Deprecated AuditReader getCurrentRevision.

This commit is contained in:
Chris Cranford 2016-05-31 23:39:38 -05:00
parent 885f76a92f
commit 3cb2390b3d
2 changed files with 4 additions and 0 deletions

View File

@ -224,7 +224,10 @@ public interface AuditReader {
* @param <T> The type of the revision entity to find
*
* @return The current revision entity, to which any entries in the audit tables will be bound.
* @deprecated (since 5.2), use {@link org.hibernate.envers.RevisionListener} instead. While this method is
* being deprecated, expect a new API for this in 6.0.
*/
@Deprecated
<T> T getCurrentRevision(Class<T> revisionEntityClass, boolean persist);
/**

View File

@ -76,3 +76,4 @@ implement JPA methods now in core I decided to implement more of a composition a
and EntityManager#getFlushMode.
* Setting `hibernate.listeners.envers.autoRegister` has been deprecated in favor of
`hibernate.envers.autoRegisterListeners`.
* AuditReader#getCurrentRevision has been deprecated in favor of `org.hibernate.envers.RevisionListener`.