Code examples for DetachedCriteria

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
121:	_detachedCriteria.getAlias() + "_." + projection.toString(), 
-
127:	_detachedCriteria.setProjection(projectionImpl.getWrappedProjection()); 
Full Snippet Info
7
CodeRank
44:	criteria.setProjection(Projections.id()); 
45:	criteria.add(getRandomRestriction()); 
46:	return this.getHibernateTemplate().findByCriteria(criteria, 0, maxResults); 
Full Snippet Info
5
CodeRank
19:	criteria.add(Restrictions.eq("deviceId", deviceId)); 
20:	criteria.add(Restrictions.eq("deviceType", deviceType)); 
21:	return this.findUnique(criteria); 
Full Snippet Info
4
CodeRank