mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-8025 Revert "HHH-2951 Restrictions.eq when passed null, should create a NullRestriction"
This reverts commit 70454c9168129620089be47db0524652a4bd8c1e.
This commit is contained in:
parent
db53c72a85
commit
1fdf4d7a07
@ -55,11 +55,11 @@ public SimpleExpression like(String value, MatchMode matchMode) {
|
||||
return Restrictions.like(getPropertyName(), value, matchMode);
|
||||
}
|
||||
|
||||
public Criterion eq(Object value) {
|
||||
public SimpleExpression eq(Object value) {
|
||||
return Restrictions.eq(getPropertyName(), value);
|
||||
}
|
||||
|
||||
public Criterion ne(Object value) {
|
||||
public SimpleExpression ne(Object value) {
|
||||
return Restrictions.ne(getPropertyName(), value);
|
||||
}
|
||||
|
||||
|
@ -61,10 +61,7 @@ public static Criterion idEq(Object value) {
|
||||
* @param value
|
||||
* @return Criterion
|
||||
*/
|
||||
public static Criterion eq(String propertyName, Object value) {
|
||||
if (null == value) {
|
||||
return isNull(propertyName);
|
||||
}
|
||||
public static SimpleExpression eq(String propertyName, Object value) {
|
||||
return new SimpleExpression(propertyName, value, "=");
|
||||
}
|
||||
/**
|
||||
@ -73,10 +70,7 @@ public static Criterion eq(String propertyName, Object value) {
|
||||
* @param value
|
||||
* @return Criterion
|
||||
*/
|
||||
public static Criterion ne(String propertyName, Object value) {
|
||||
if (null == value) {
|
||||
return isNotNull(propertyName);
|
||||
}
|
||||
public static SimpleExpression ne(String propertyName, Object value) {
|
||||
return new SimpleExpression(propertyName, value, "<>");
|
||||
}
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user