Resumo 0004928: Pesquisa Usuario - Listando ponto de venda inativo
Descrição Pesquisa Usuario - Listando ponto de venda inativo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@33734 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
837a96075b
commit
b8c556892f
|
@ -25,6 +25,7 @@ import javax.persistence.SequenceGenerator;
|
|||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
import org.hibernate.annotations.Fetch;
|
||||
import org.hibernate.annotations.FetchMode;
|
||||
|
@ -82,6 +83,8 @@ public class Usuario implements Serializable, Authentication, UserDetails {
|
|||
@Fetch(FetchMode.SELECT)
|
||||
private List<UsuarioUbicacion> usuarioUbicacionList;
|
||||
|
||||
|
||||
|
||||
|
||||
public String getClaveUsuario() {
|
||||
return claveUsuario;
|
||||
|
@ -310,12 +313,18 @@ public class Usuario implements Serializable, Authentication, UserDetails {
|
|||
}
|
||||
|
||||
public List<UsuarioUbicacion> getUsuarioUbicacionList() {
|
||||
return usuarioUbicacionList;
|
||||
List<UsuarioUbicacion> ubicacionActivos = new ArrayList<UsuarioUbicacion>();
|
||||
|
||||
if(usuarioUbicacionList != null)
|
||||
for(UsuarioUbicacion ubicacion : usuarioUbicacionList)
|
||||
if(ubicacion.getActivo())
|
||||
ubicacionActivos.add(ubicacion);
|
||||
|
||||
|
||||
return ubicacionActivos;
|
||||
}
|
||||
|
||||
public void setUsuarioUbicacionList(List<UsuarioUbicacion> usuarioUbicacionList) {
|
||||
this.usuarioUbicacionList = usuarioUbicacionList;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue