@Override
	public CommerceNotificationTemplate findByG_E_Last(long groupId,
		boolean enabled,
		OrderByComparator<CommerceNotificationTemplate> orderByComparator)
		throws NoSuchNotificationTemplateException {
		CommerceNotificationTemplate commerceNotificationTemplate = fetchByG_E_Last(groupId,
				enabled, orderByComparator);

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

		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

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

		msg.append("}");

		throw new NoSuchNotificationTemplateException(msg.toString());
	}
@ Override public CommerceNotificationTemplate findByG_E_Last ( long groupId , boolean enabled , OrderByComparator < CommerceNotificationTemplate > orderByComparator ) throws NoSuchNotificationTemplateException { CommerceNotificationTemplate commerceNotificationTemplate = fetchByG_E_Last ( groupId , enabled , orderByComparator ) ; if ( commerceNotificationTemplate != null ) { return commerceNotificationTemplate ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( ", enabled=" ) ; msg . append ( enabled ) ; msg . append ( "}" ) ; throw new NoSuchNotificationTemplateException ( msg . toString ( ) ) ; }
Returns the last commerce notification template in the ordered set where groupId = &#63; and enabled = &#63;.

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