Code example for DetachedCriteria

Methods: getAliassetProjection

0
	public DynamicQuery setProjection( 
		Projection projection, boolean useColumnAlias) {
 
		if (!useColumnAlias) {
			projection = ProjectionFactoryUtil.sqlProjection( 
				_detachedCriteria.getAlias() + "_." + projection.toString(),
				null, null); 
		} 
 
		ProjectionImpl projectionImpl = (ProjectionImpl)projection;
 
		_detachedCriteria.setProjection(projectionImpl.getWrappedProjection());
 
		return this;
	} 
 
	@Override 
	public String toString() {
		if (_criteria != null) {
			return _criteria.toString();