Example usage for org.hibernate.criterion CriteriaSpecification ROOT_ALIAS

List of usage examples for org.hibernate.criterion CriteriaSpecification ROOT_ALIAS

Introduction

In this page you can find the example usage for org.hibernate.criterion CriteriaSpecification ROOT_ALIAS.

Prototype

String ROOT_ALIAS

To view the source code for org.hibernate.criterion CriteriaSpecification ROOT_ALIAS.

Click Source Link

Document

The alias that refers to the "root" entity of the criteria query.

Usage

From source file:org.eurocarbdb.dataaccess.core.seq.SubstructureQueryCriterion.java

License:Open Source License

/** 
*   Creates a {@link SubstructureQueryCriterion} for the passed 
*   {@link SubstructureQuery} with a default 
*   {@link #setPropertyName query property name}.
*
*   @see #setPropertyName//from   w  w  w  .  j ava2  s . co m
*/
public SubstructureQueryCriterion(SubstructureQuery q) {
    this.query = q;
    this.propertyName = CriteriaSpecification.ROOT_ALIAS // "this"
            + "_.glycan_sequence_id";
}