Code example for DetachedCriteria

Methods: addOrder

0
 
	@Override 
	public DynamicQuery addOrder(Order order) {
		OrderImpl orderImpl = (OrderImpl)order;
 
		_detachedCriteria.addOrder(orderImpl.getWrappedOrder());
 
		return this;
	} 
 
	@Override 
	public void compile(Session session) { 
		org.hibernate.Session hibernateSession =
			(org.hibernate.Session)session.getWrappedSession();
 
		_criteria = _detachedCriteria.getExecutableCriteria(hibernateSession);
 
		if ((_start == null) || (_end == null)) {
			return; 
		} 
Stop searching for code, let great code find you!  Add Codota to your java IDE