Example usage for org.hibernate.criterion Restrictions eqOrIsNull

List of usage examples for org.hibernate.criterion Restrictions eqOrIsNull

Introduction

In this page you can find the example usage for org.hibernate.criterion Restrictions eqOrIsNull.

Prototype

public static Criterion eqOrIsNull(String propertyName, Object value) 

Source Link

Document

Apply an "equal" constraint to the named property.

Usage

From source file:org.n52.series.db.dao.DatasetDao.java

License:Open Source License

private Criterion createPublishedAndNotDeletedRestriction(String alias) {
    return Restrictions.and(Restrictions.eq(alias.concat("published"), true),
            Restrictions.eqOrIsNull(alias.concat("deleted"), false));
}