Return-path: <issuessicom@gmail.com>
Envelope-to: omar@ssf.com.mx
Delivery-date: Fri, 18 Sep 2015 19:04:32 -0500
Received: from mail-io0-f180.google.com ([209.85.223.180]:33855)
	by vishnu.hosting-mexico.net with esmtps (TLSv1.2:AES128-GCM-SHA256:128)
	(Exim 4.85)
	(envelope-from <issuessicom@gmail.com>)
	id 1Zd5dn-003788-Sv
	for omar@ssf.com.mx; Fri, 18 Sep 2015 19:04:32 -0500
Received: by iofb144 with SMTP id b144so72898874iof.1
        for <omar@ssf.com.mx>; Fri, 18 Sep 2015 17:04:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:reply-to:to:message-id:references:subject:mime-version
         :content-type:content-transfer-encoding;
        bh=6wGxT8fXyIMs31OKQlW/VBA55KEe9qWzD5VSLkSa7xw=;
        b=tn4jfrsEZhOE6Jxe1TJ3wjiGvtUemuYw6h7E9jOwgXCX3DNhXav/oDry8KXBuqSupF
         3aYFv6QoebNnaMhfVuzY3xsWfFWA/io/65Ip84LGzCoC+zAcFztPCMmpofRPbgrvjw6t
         FnoYMjtOlpmze1kapbyMl6RIU2Vge82qEU6GcU8jPsS2iLHsOXU1YFiwe5QF34aEkXIX
         Hqrrf5vHttm8CGU7lPBi1YXA4v0SvaeZ+goUZpCWDJfF7vySknriC4noWPWSCW0QGiyg
         1AEsbkYRT69GG+fvM8sJPj+wXBWrNjDBM5GvwVBhdiSqJVyhxWCkLIak0L9S8ic8liKP
         2Qjw==
X-Received: by 10.107.134.220 with SMTP id q89mr17186740ioi.90.1442621073072;
        Fri, 18 Sep 2015 17:04:33 -0700 (PDT)
Received: from gmail.com ([108.161.137.201])
        by smtp.gmail.com with ESMTPSA id v3sm339166igb.3.2015.09.18.17.04.32
        for <omar@ssf.com.mx>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 18 Sep 2015 17:04:32 -0700 (PDT)
Date: Fri, 18 Sep 2015 19:04:32 -0500
From: Rogelio Delgado <issuessicom@gmail.com>
Reply-To: noreply@108.161.137.201
To: omar@ssf.com.mx
Message-ID: <55fca69022233_96263fbb8a46a6c4516b5@develop.mail>
References: <merge_request_17@108.161.137.201>
Subject: G4S | Eliminar cliente (#15)
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="--==_mimepart_55fca690204bc_96263fbb8a46a6c451510";
 charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-0.8
X-Spam-Score: -7
X-Spam-Bar: /
X-Ham-Report: Spam detection software, running on the system "vishnu.hosting-mexico.net",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 root\@localhost for details.
 
 Content preview:  New comment for Merge Request 15 http://108.161.137.201:9000/Rogelio/g4s/merge_requests/15#note_13
    Rogelio Delgado [...] 
 
 Content analysis details:   (-0.8 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was blocked.
                             See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information.
                             [URIs: 108.161.137.201]
 -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at http://www.dnswl.org/, low
                             trust
                             [209.85.223.180 listed in list.dnswl.org]
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail provider
                             (issuessicom[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 WEIRD_PORT             URI: Uses non-standard port number for HTTP
  0.0 NORMAL_HTTP_TO_IP      URI: URI host has a public dotted-decimal IPv4
                             address
  0.0 HTML_MESSAGE           BODY: HTML included in message
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from author's
                             domain
  0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid
 -0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [209.85.223.180 listed in wl.mailspike.net]
X-Spam-Flag: NO


----==_mimepart_55fca690204bc_96263fbb8a46a6c451510
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

New comment for Merge Request 15

http://108.161.137.201:9000/Rogelio/g4s/merge_requests/15#note_13


Rogelio Delgado

No ha ocurrido en el pasado. Solo para saber si existen registros no es b=
uena idea hacer una consulta que traiga la lista de registros y luego en =
c=C3=B3digo revisar el tama=C3=B1o de la lista. Es una mejor practica hac=
er una consulta con un count para que regrese un solo n=C3=BAmero, el n=C3=
=BAmero de registros en la base de datos. En JPQL ser=C3=ADa algo as=C3=AD=
:

select count(m) from Movement m where .....

Y la firma del m=C3=A9todo en el DAO deber=C3=ADa ser algo as=C3=AD:

public Long countMovemntForReceptionUnit(UUID receptionUnitId);

Lo "diferente" es el tipo de dato que est=C3=A1s regresando, un Long y no=
 un entity como en los dem=C3=A1s m=C3=A9todos.


----==_mimepart_55fca690204bc_96263fbb8a46a6c451510
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html lang=3D'en'>
<head>
<meta content=3D'text/html; charset=3Dutf-8' http-equiv=3D'Content-Type'>=

<title>
GitLab
</title>
</meta>
</head>
<style>
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
</style>
<body>
<div class=3D'content'>
<p class=3D'details'>
New comment on diff for
<a href=3D"http://108.161.137.201:9000/Rogelio/g4s/merge_requests/15#note=
_13">SCGasPAR/OperationalServicesImpl/src/main/java/mx/ssf/sicom/operatio=
nalServices/servicesImpl/MovementServiceImpl.java</a>
:
</p>
<div>
<p>No ha ocurrido en el pasado. Solo para saber si existen registros no e=
s buena idea hacer una consulta que traiga la lista de registros y luego =
en c=C3=B3digo revisar el tama=C3=B1o de la lista. Es una mejor practica =
hacer una consulta con un count para que regrese un solo n=C3=BAmero, el =
n=C3=BAmero de registros en la base de datos. En JPQL ser=C3=ADa algo as=C3=
=AD:</p>

<p>select count(m) from Movement m where .....</p>

<p>Y la firma del m=C3=A9todo en el DAO deber=C3=ADa ser algo as=C3=AD:</=
p>

<p>public Long countMovemntForReceptionUnit(UUID receptionUnitId);</p>

<p>Lo &quot;diferente&quot; es el tipo de dato que est=C3=A1s regresando,=
 un Long y no un entity como en los dem=C3=A1s m=C3=A9todos.</p>

</div>


</div>
<div class=3D'footer' style=3D'margin-top: 10px;'>
<p>
=E2=80=94
<br>
You're receiving this notification because you are a member of the Rogeli=
o Delgado / G4S project team.
<a href=3D"http://108.161.137.201:9000/Rogelio/g4s/merge_requests/15#note=
_13">View it on GitLab</a>
</p>
</div>
</body>
</html>

----==_mimepart_55fca690204bc_96263fbb8a46a6c451510--
