docs: @Override
  	public CommerceDiscountRel[] findByCN_CPK_PrevAndNext(
  		long commerceDiscountRelId, long classNameId, long classPK,
  		OrderByComparator<CommerceDiscountRel> orderByComparator)
  		throws NoSuchDiscountRelException {
  		CommerceDiscountRel commerceDiscountRel = findByPrimaryKey(commerceDiscountRelId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceDiscountRel[] array = new CommerceDiscountRelImpl[3];
  
  			array[0] = getByCN_CPK_PrevAndNext(session, commerceDiscountRel,
  					classNameId, classPK, orderByComparator, true);
  
  			array[1] = commerceDiscountRel;
  
  			array[2] = getByCN_CPK_PrevAndNext(session, commerceDiscountRel,
  					classNameId, classPK, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}