@Override
	public CommerceOrderNote findByCommerceOrderId_Last(long commerceOrderId,
		OrderByComparator<CommerceOrderNote> orderByComparator)
		throws NoSuchOrderNoteException {
		CommerceOrderNote commerceOrderNote = fetchByCommerceOrderId_Last(commerceOrderId,
				orderByComparator);

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

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

		msg.append("}");

		throw new NoSuchOrderNoteException(msg.toString());
	}
@ Override public CommerceOrderNote findByCommerceOrderId_Last ( long commerceOrderId , OrderByComparator < CommerceOrderNote > orderByComparator ) throws NoSuchOrderNoteException { CommerceOrderNote commerceOrderNote = fetchByCommerceOrderId_Last ( commerceOrderId , orderByComparator ) ; if ( commerceOrderNote != null ) { return commerceOrderNote ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "commerceOrderId=" ) ; msg . append ( commerceOrderId ) ; msg . append ( "}" ) ; throw new NoSuchOrderNoteException ( msg . toString ( ) ) ; }
Returns the last commerce order note in the ordered set where commerceOrderId = &#63;.

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