@Override
	public CPDefinitionSpecificationOptionValue fetchByCPSpecificationOptionId_First(
		long CPSpecificationOptionId,
		OrderByComparator<CPDefinitionSpecificationOptionValue> orderByComparator) {
		List<CPDefinitionSpecificationOptionValue> list = findByCPSpecificationOptionId(CPSpecificationOptionId,
				0, 1, orderByComparator);

		if (!list.isEmpty()) {
			return list.get(0);
		}

		return null;
	}
@ Override public CPDefinitionSpecificationOptionValue fetchByCPSpecificationOptionId_First ( long CPSpecificationOptionId , OrderByComparator < CPDefinitionSpecificationOptionValue > orderByComparator ) { List < CPDefinitionSpecificationOptionValue > list = findByCPSpecificationOptionId ( CPSpecificationOptionId , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the first cp definition specification option value in the ordered set where CPSpecificationOptionId = &#63;.

@param CPSpecificationOptionId the cp specification option ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching cp definition specification option value, or <code>null</code> if a matching cp definition specification option value could not be found