git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@23886 d1611594-4594-4d17-8e1d-87c2c4800839
parent
29b963992e
commit
fcbd6fc97c
|
@ -66,7 +66,8 @@ public class Usuario implements Serializable, Authentication, UserDetails {
|
||||||
private String descCorreo;
|
private String descCorreo;
|
||||||
@OneToMany(mappedBy = "usuario", cascade = CascadeType.ALL)
|
@OneToMany(mappedBy = "usuario", cascade = CascadeType.ALL)
|
||||||
private List<UsuarioPerfil> usuarioPerfilList;
|
private List<UsuarioPerfil> usuarioPerfilList;
|
||||||
|
@Column(name = "INDCORTEAUTOMATICO")
|
||||||
|
private Boolean indCorteAutomatico;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "EMPLEADO_ID")
|
@JoinColumn(name = "EMPLEADO_ID")
|
||||||
private Empleado empleado;
|
private Empleado empleado;
|
||||||
|
@ -153,7 +154,6 @@ public class Usuario implements Serializable, Authentication, UserDetails {
|
||||||
this.senha = senha;
|
this.senha = senha;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<UsuarioEmpresa> getUsuarioEmpresaList() {
|
public List<UsuarioEmpresa> getUsuarioEmpresaList() {
|
||||||
List<UsuarioEmpresa> tmp = new ArrayList<UsuarioEmpresa>();
|
List<UsuarioEmpresa> tmp = new ArrayList<UsuarioEmpresa>();
|
||||||
if (usuarioEmpresaList != null) {
|
if (usuarioEmpresaList != null) {
|
||||||
|
@ -184,7 +184,6 @@ public class Usuario implements Serializable, Authentication, UserDetails {
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<Empresa> getEmpresa() {
|
public List<Empresa> getEmpresa() {
|
||||||
List<Empresa> tmp = new ArrayList<Empresa>();
|
List<Empresa> tmp = new ArrayList<Empresa>();
|
||||||
if (usuarioEmpresaList != null) {
|
if (usuarioEmpresaList != null) {
|
||||||
|
@ -210,31 +209,6 @@ public class Usuario implements Serializable, Authentication, UserDetails {
|
||||||
this.empleado = empleado;
|
this.empleado = empleado;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
int hash = 0;
|
|
||||||
hash += (usuarioId != null ? usuarioId.hashCode() : 0);
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object object) {
|
|
||||||
// TODO: Warning - this method won't work in the case the id fields are not set
|
|
||||||
if (!(object instanceof Usuario)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Usuario other = (Usuario) object;
|
|
||||||
if ((this.usuarioId == null && other.usuarioId != null) || (this.usuarioId != null && !this.usuarioId.equals(other.usuarioId))) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "com.rjconsultores.ventaboletos.entidad.Usuario[usuarioId=" + usuarioId + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
public Collection<GrantedAuthority> getAuthorities() {
|
public Collection<GrantedAuthority> getAuthorities() {
|
||||||
return new ArrayList<GrantedAuthority>();
|
return new ArrayList<GrantedAuthority>();
|
||||||
}
|
}
|
||||||
|
@ -293,4 +267,36 @@ public class Usuario implements Serializable, Authentication, UserDetails {
|
||||||
public void setDescCorreo(String descCorreo) {
|
public void setDescCorreo(String descCorreo) {
|
||||||
this.descCorreo = descCorreo;
|
this.descCorreo = descCorreo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean getIndCorteAutomatico() {
|
||||||
|
return indCorteAutomatico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndCorteAutomatico(Boolean indCorteAutomatico) {
|
||||||
|
this.indCorteAutomatico = indCorteAutomatico;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 0;
|
||||||
|
hash += (usuarioId != null ? usuarioId.hashCode() : 0);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object object) {
|
||||||
|
if (!(object instanceof Usuario)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Usuario other = (Usuario) object;
|
||||||
|
if ((this.usuarioId == null && other.usuarioId != null) || (this.usuarioId != null && !this.usuarioId.equals(other.usuarioId))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.rjconsultores.ventaboletos.entidad.Usuario[usuarioId=" + usuarioId + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue