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

This reverts commit 265b3d37cf.
This commit is contained in:
Brett Meyer 2013-02-28 15:41:50 -05:00
parent 5f38be4659
commit c4eff66948
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, "<>");
}
/**