HHH-12424 - Fix unintended binary compatibility breaks between 5.1 and 5.3

HHH-11737 - Remove dependency upon org.hibernate.criterion package.
This commit is contained in:
Chris Cranford 2018-04-16 10:26:24 -04:00
parent 8061e812ad
commit c7c919f54a
1 changed files with 11 additions and 1 deletions

View File

@ -69,6 +69,16 @@ public class AuditProperty<T> implements AuditProjection {
return new SimpleAuditExpression( alias, propertyNameGetter, value, " like " );
}
/**
* Apply a "like" constraint
*
* @deprecated since 5.2, use {@link #like(String, MatchMode)}.
*/
@Deprecated
public AuditCriterion like(String value, org.hibernate.criterion.MatchMode matchMode) {
return new SimpleAuditExpression( alias, propertyNameGetter, matchMode.toMatchString( value ), " like" );
}
/**
* Apply a "like" constraint
*/
@ -86,7 +96,7 @@ public class AuditProperty<T> implements AuditProjection {
/**
* Apply an "ilike" constraint
*
* @deprecated since 5.2, use {@link #ilike(String, MatchMode)}. To be removed in 6.0.
* @deprecated since 5.2, use {@link #ilike(String, MatchMode)}.
*/
@Deprecated
public AuditCriterion ilike(String value, org.hibernate.criterion.MatchMode matchMode) {