HHH-8025 Revert "HHH-2951 Restrictions.eq when passed null, should create a NullRestriction"

This reverts commit 70454c9168.
This commit is contained in:
Brett Meyer 2013-02-28 15:24:25 -05:00
parent db53c72a85
commit 1fdf4d7a07
2 changed files with 4 additions and 10 deletions

View File

@ -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);
}

View File

@ -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, "<>");
}
/**