@Override
	public CommerceDiscount fetchByG_C_First(long groupId, String couponCode,
		OrderByComparator<CommerceDiscount> orderByComparator) {
		List<CommerceDiscount> list = findByG_C(groupId, couponCode, 0, 1,
				orderByComparator);

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

		return null;
	}
@ Override public CommerceDiscount fetchByG_C_First ( long groupId , String couponCode , OrderByComparator < CommerceDiscount > orderByComparator ) { List < CommerceDiscount > list = findByG_C ( groupId , couponCode , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the first commerce discount in the ordered set where groupId = &#63; and couponCode = &#63;.

@param groupId the group ID
@param couponCode the coupon code
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching commerce discount, or <code>null</code> if a matching commerce discount could not be found