@Override
	public CPMeasurementUnit findByG_T_First(long groupId, int type,
		OrderByComparator<CPMeasurementUnit> orderByComparator)
		throws NoSuchCPMeasurementUnitException {
		CPMeasurementUnit cpMeasurementUnit = fetchByG_T_First(groupId, type,
				orderByComparator);

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

		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

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

		msg.append("}");

		throw new NoSuchCPMeasurementUnitException(msg.toString());
	}
@ Override public CPMeasurementUnit findByG_T_First ( long groupId , int type , OrderByComparator < CPMeasurementUnit > orderByComparator ) throws NoSuchCPMeasurementUnitException { CPMeasurementUnit cpMeasurementUnit = fetchByG_T_First ( groupId , type , orderByComparator ) ; if ( cpMeasurementUnit != null ) { return cpMeasurementUnit ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( ", type=" ) ; msg . append ( type ) ; msg . append ( "}" ) ; throw new NoSuchCPMeasurementUnitException ( msg . toString ( ) ) ; }
Returns the first cp measurement unit in the ordered set where groupId = &#63; and type = &#63;.

@param groupId the group ID
@param type the type
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching cp measurement unit
@throws NoSuchCPMeasurementUnitException if a matching cp measurement unit could not be found