docs: @Override
  	public CommerceNotificationAttachment fetchByUUID_G(String uuid,
  		long groupId, boolean retrieveFromCache) {
  		Object[] finderArgs = new Object[] { uuid, groupId };
  
  		Object result = null;
  
  		if (retrieveFromCache) {
  			result = finderCache.getResult(FINDER_PATH_FETCH_BY_UUID_G,
  					finderArgs, this);
  		}
  
  		if (result instanceof CommerceNotificationAttachment) {
  			CommerceNotificationAttachment commerceNotificationAttachment = (CommerceNotificationAttachment)result;
  
  			if (!Objects.equals(uuid, commerceNotificationAttachment.getUuid()) ||
  					(groupId != commerceNotificationAttachment.getGroupId())) {
  				result = null;
  			}
  		}
  
  		if (result == null) {
  			StringBundler query = new StringBundler(4);
  
  			query.append(_SQL_SELECT_COMMERCENOTIFICATIONATTACHMENT_WHERE);
  
  			boolean bindUuid = false;
  
  			if (uuid == null) {
  				query.append(_FINDER_COLUMN_UUID_G_UUID_1);
  			}
  			else if (uuid.equals("")) {
  				query.append(_FINDER_COLUMN_UUID_G_UUID_3);
  			}
  			else {
  				bindUuid = true;
  
  				query.append(_FINDER_COLUMN_UUID_G_UUID_2);
  			}
  
  			query.append(_FINDER_COLUMN_UUID_G_GROUPID_2);
  
  			String sql = query.toString();
  
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				Query q = session.createQuery(sql);
  
  				QueryPos qPos = QueryPos.getInstance(q);
  
  				if (bindUuid) {
  					qPos.add(uuid);
  				}
  
  				qPos.add(groupId);
  
  				List<CommerceNotificationAttachment> list = q.list();
  
  				if (list.isEmpty()) {
  					finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
  						finderArgs, list);
  				}
  				else {
  					CommerceNotificationAttachment commerceNotificationAttachment =
  						list.get(0);
  
  					result = commerceNotificationAttachment;
  
  					cacheResult(commerceNotificationAttachment);
  				}
  			}
  			catch (Exception e) {
  				finderCache.removeResult(FINDER_PATH_FETCH_BY_UUID_G, finderArgs);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		if (result instanceof List<?>) {
  			return null;
  		}
  		else {
  			return (CommerceNotificationAttachment)result;
  		}
  	}