@Override
	public CommerceDiscountRel findByCommerceDiscountId_Last(
		long commerceDiscountId,
		OrderByComparator<CommerceDiscountRel> orderByComparator)
		throws NoSuchDiscountRelException {
		CommerceDiscountRel commerceDiscountRel = fetchByCommerceDiscountId_Last(commerceDiscountId,
				orderByComparator);

		if (commerceDiscountRel != null) {
			return commerceDiscountRel;
		}

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("commerceDiscountId=");
		msg.append(commerceDiscountId);

		msg.append("}");

		throw new NoSuchDiscountRelException(msg.toString());
	}
@ Override public CommerceDiscountRel findByCommerceDiscountId_Last ( long commerceDiscountId , OrderByComparator < CommerceDiscountRel > orderByComparator ) throws NoSuchDiscountRelException { CommerceDiscountRel commerceDiscountRel = fetchByCommerceDiscountId_Last ( commerceDiscountId , orderByComparator ) ; if ( commerceDiscountRel != null ) { return commerceDiscountRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "commerceDiscountId=" ) ; msg . append ( commerceDiscountId ) ; msg . append ( "}" ) ; throw new NoSuchDiscountRelException ( msg . toString ( ) ) ; }
Returns the last commerce discount rel in the ordered set where commerceDiscountId = &#63;.

@param commerceDiscountId the commerce discount ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce discount rel
@throws NoSuchDiscountRelException if a matching commerce discount rel could not be found