@Override
	public CommerceOrder findByGroupId_Last(long groupId,
		OrderByComparator<CommerceOrder> orderByComparator)
		throws NoSuchOrderException {
		CommerceOrder commerceOrder = fetchByGroupId_Last(groupId,
				orderByComparator);

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

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

		msg.append("}");

		throw new NoSuchOrderException(msg.toString());
	}
@ Override public CommerceOrder findByGroupId_Last ( long groupId , OrderByComparator < CommerceOrder > orderByComparator ) throws NoSuchOrderException { CommerceOrder commerceOrder = fetchByGroupId_Last ( groupId , orderByComparator ) ; if ( commerceOrder != null ) { return commerceOrder ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( "}" ) ; throw new NoSuchOrderException ( msg . toString ( ) ) ; }
Returns the last commerce order in the ordered set where groupId = &#63;.

@param groupId the group ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce order
@throws NoSuchOrderException if a matching commerce order could not be found