fixes bug#AL-2706
parent
8daf32565c
commit
caabfac824
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ModelWeb</artifactId>
|
<artifactId>ModelWeb</artifactId>
|
||||||
<version>1.5.4</version>
|
<version>1.5.5</version>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>rj-releases</id>
|
<id>rj-releases</id>
|
||||||
|
|
|
@ -64,8 +64,10 @@ public class ClienteHibernateDAO extends GenericHibernateDAO<Cliente, Integer>
|
||||||
@Override
|
@Override
|
||||||
public List<Cliente> buscarPorDocumento(String documento) {
|
public List<Cliente> buscarPorDocumento(String documento) {
|
||||||
Criteria c = getCriteriaClienteActivo();
|
Criteria c = getCriteriaClienteActivo();
|
||||||
c.add(Restrictions.eq("numIdentificaUno", documento));
|
c.add(Restrictions.or(
|
||||||
|
Restrictions.eq("numIdentificaUno", documento),
|
||||||
|
Restrictions.eq("numIdentificaDos", documento)
|
||||||
|
));
|
||||||
return c.list();
|
return c.list();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue