Skip to content

Commit

Permalink
10664 - Prepare Envers for 5.2 - Deprecated AuditReader getCurrentRev…
Browse files Browse the repository at this point in the history
…ision.
  • Loading branch information
Naros committed Jun 1, 2016
1 parent 885f76a commit 3cb2390
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -224,7 +224,10 @@ <T> Map<Number, T> findRevisions(
* @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);

/**
Expand Down
1 change: 1 addition & 0 deletions migration-guide.adoc
Expand Up @@ -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`.

0 comments on commit 3cb2390

Please sign in to comment.