@Override
	public CPRuleAssetCategoryRel findByCPRuleId_Last(long CPRuleId,
		OrderByComparator<CPRuleAssetCategoryRel> orderByComparator)
		throws NoSuchCPRuleAssetCategoryRelException {
		CPRuleAssetCategoryRel cpRuleAssetCategoryRel = fetchByCPRuleId_Last(CPRuleId,
				orderByComparator);

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

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

		msg.append("}");

		throw new NoSuchCPRuleAssetCategoryRelException(msg.toString());
	}
@ Override public CPRuleAssetCategoryRel findByCPRuleId_Last ( long CPRuleId , OrderByComparator < CPRuleAssetCategoryRel > orderByComparator ) throws NoSuchCPRuleAssetCategoryRelException { CPRuleAssetCategoryRel cpRuleAssetCategoryRel = fetchByCPRuleId_Last ( CPRuleId , orderByComparator ) ; if ( cpRuleAssetCategoryRel != null ) { return cpRuleAssetCategoryRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPRuleId=" ) ; msg . append ( CPRuleId ) ; msg . append ( "}" ) ; throw new NoSuchCPRuleAssetCategoryRelException ( msg . toString ( ) ) ; }
Returns the last cp rule asset category rel in the ordered set where CPRuleId = &#63;.

@param CPRuleId the cp rule ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching cp rule asset category rel
@throws NoSuchCPRuleAssetCategoryRelException if a matching cp rule asset category rel could not be found