Example usage for org.hibernate.criterion Projection interface-usage

List of usage examples for org.hibernate.criterion Projection interface-usage

Introduction

In this page you can find the example usage for org.hibernate.criterion Projection interface-usage.

Usage

From source file com.qrmedia.commons.test.hibernate.criterion.ComparableProjection.java

/**
 * A wrapper around a Hibernate <code>Projection</code> that supports a &quot;natural&quot;
 * (i.e. non-instance) equality. Using these classes,
 * <pre>
 *   <code>new ComparableProjection(Projections.property("foo")).equals(
 *         new ComparableProjection(Projections.property("foo")))</code>