Merge pull request 'fixes bug#AL-2706' (!65) from AL-2706 into master
Reviewed-on: adm/ModelWeb#65 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>master
commit
c7aeef20a6
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ModelWeb</artifactId>
|
||||
<version>1.5.4</version>
|
||||
<version>1.5.5</version>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>rj-releases</id>
|
||||
|
|
|
@ -64,8 +64,10 @@ public class ClienteHibernateDAO extends GenericHibernateDAO<Cliente, Integer>
|
|||
@Override
|
||||
public List<Cliente> buscarPorDocumento(String documento) {
|
||||
Criteria c = getCriteriaClienteActivo();
|
||||
c.add(Restrictions.eq("numIdentificaUno", documento));
|
||||
|
||||
c.add(Restrictions.or(
|
||||
Restrictions.eq("numIdentificaUno", documento),
|
||||
Restrictions.eq("numIdentificaDos", documento)
|
||||
));
|
||||
return c.list();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue