@Override
	public CPDefinitionSpecificationOptionValue findByCPOptionCategoryId_Last(
		long CPOptionCategoryId,
		OrderByComparator<CPDefinitionSpecificationOptionValue> orderByComparator)
		throws NoSuchCPDefinitionSpecificationOptionValueException {
		CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue =
			fetchByCPOptionCategoryId_Last(CPOptionCategoryId, orderByComparator);

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

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

		msg.append("}");

		throw new NoSuchCPDefinitionSpecificationOptionValueException(msg.toString());
	}
@ Override public CPDefinitionSpecificationOptionValue findByCPOptionCategoryId_Last ( long CPOptionCategoryId , OrderByComparator < CPDefinitionSpecificationOptionValue > orderByComparator ) throws NoSuchCPDefinitionSpecificationOptionValueException { CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue = fetchByCPOptionCategoryId_Last ( CPOptionCategoryId , orderByComparator ) ; if ( cpDefinitionSpecificationOptionValue != null ) { return cpDefinitionSpecificationOptionValue ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPOptionCategoryId=" ) ; msg . append ( CPOptionCategoryId ) ; msg . append ( "}" ) ; throw new NoSuchCPDefinitionSpecificationOptionValueException ( msg . toString ( ) ) ; }
Returns the last cp definition specification option value in the ordered set where CPOptionCategoryId = &#63;.

@param CPOptionCategoryId the cp option category ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching cp definition specification option value
@throws NoSuchCPDefinitionSpecificationOptionValueException if a matching cp definition specification option value could not be found