HHH-8025 Revert "HHH-2951 Restrictions.eq when passed null, should create a NullRestriction"
This reverts commit 265b3d37cf
.
This commit is contained in:
parent
5f38be4659
commit
c4eff66948
|
@ -55,11 +55,11 @@ public class Property extends PropertyProjection {
|
|||
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 class Restrictions {
|
|||
* @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 class Restrictions {
|
|||
* @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…
Reference in New Issue