Code example for CriteriaImpl

0
		impl = new CriteriaImpl(entityName, null);
		criteria = impl;
	} 
	 
	protected DetachedCriteria(String entityName, String alias) {
		impl = new CriteriaImpl(entityName, alias, null);
		criteria = impl;
	} 
	 
	protected DetachedCriteria(CriteriaImpl impl, Criteria criteria) {
		this.impl = impl;
		this.criteria = criteria;
	} 
	 
	/** 
	 * Get an executable instance of <literal>Criteria</literal>, 
	 * to actually run the query. 
	 */ 
	public Criteria getExecutableCriteria(Session session) {
		impl.setSession( ( SessionImplementor ) session );
Contextual code suggestions in your IDE  Get Codota for Java