@Override
	public CPDefinitionOptionRel findByC_C(long CPDefinitionId, long CPOptionId)
		throws NoSuchCPDefinitionOptionRelException {
		CPDefinitionOptionRel cpDefinitionOptionRel = fetchByC_C(CPDefinitionId,
				CPOptionId);

		if (cpDefinitionOptionRel == null) {
			StringBundler msg = new StringBundler(6);

			msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

			msg.append(", CPOptionId=");
			msg.append(CPOptionId);

			msg.append("}");

			if (_log.isDebugEnabled()) {
				_log.debug(msg.toString());
			}

			throw new NoSuchCPDefinitionOptionRelException(msg.toString());
		}

		return cpDefinitionOptionRel;
	}
@ Override public CPDefinitionOptionRel findByC_C ( long CPDefinitionId , long CPOptionId ) throws NoSuchCPDefinitionOptionRelException { CPDefinitionOptionRel cpDefinitionOptionRel = fetchByC_C ( CPDefinitionId , CPOptionId ) ; if ( cpDefinitionOptionRel == null ) { StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPDefinitionId=" ) ; msg . append ( CPDefinitionId ) ; msg . append ( ", CPOptionId=" ) ; msg . append ( CPOptionId ) ; msg . append ( "}" ) ; if ( _log . isDebugEnabled ( ) ) { _log . debug ( msg . toString ( ) ) ; } throw new NoSuchCPDefinitionOptionRelException ( msg . toString ( ) ) ; } return cpDefinitionOptionRel ; }
Returns the cp definition option rel where CPDefinitionId = &#63; and CPOptionId = &#63; or throws a {@link NoSuchCPDefinitionOptionRelException} if it could not be found.

@param CPDefinitionId the cp definition ID
@param CPOptionId the cp option ID
@return the matching cp definition option rel
@throws NoSuchCPDefinitionOptionRelException if a matching cp definition option rel could not be found