git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@30983 d1611594-4594-4d17-8e1d-87c2c4800839
parent
19dede32d0
commit
17d709cb00
|
@ -18,121 +18,120 @@ import javax.persistence.Temporal;
|
|||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author gleimar
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "CONEXION")
|
||||
public class Conexion implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CONEXION_ID")
|
||||
private Long conexionId;
|
||||
@Column(name = "NUMGRUPO")
|
||||
private Integer numgrupo;
|
||||
@Column(name = "NUMSECUENCIA")
|
||||
private Short numsecuencia;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "ORIGEN_ID")
|
||||
private Integer origenId;
|
||||
@Column(name = "DESTINO_ID")
|
||||
private Integer destinoId;
|
||||
@Column(name = "CONEXIONCTRL_ID")
|
||||
private Long conexionctrlId;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID",insertable=false,updatable=false)
|
||||
@ManyToOne
|
||||
private Parada origen;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID",insertable=false,updatable=false)
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CONEXION_ID")
|
||||
private Long conexionId;
|
||||
@Column(name = "NUMGRUPO")
|
||||
private Integer numgrupo;
|
||||
@Column(name = "NUMSECUENCIA")
|
||||
private Short numsecuencia;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@Column(name = "ORIGEN_ID")
|
||||
private Integer origenId;
|
||||
@Column(name = "DESTINO_ID")
|
||||
private Integer destinoId;
|
||||
@Column(name = "CONEXIONCTRL_ID")
|
||||
private Long conexionctrlId;
|
||||
@JoinColumn(name = "ORIGEN_ID", referencedColumnName = "PARADA_ID", insertable = false, updatable = false)
|
||||
@ManyToOne
|
||||
private Parada origen;
|
||||
@JoinColumn(name = "DESTINO_ID", referencedColumnName = "PARADA_ID", insertable = false, updatable = false)
|
||||
@ManyToOne
|
||||
private Parada destino;
|
||||
|
||||
public Conexion() {
|
||||
}
|
||||
public Conexion() {
|
||||
}
|
||||
|
||||
public Conexion(Long conexionId) {
|
||||
this.conexionId = conexionId;
|
||||
}
|
||||
public Conexion(Long conexionId) {
|
||||
this.conexionId = conexionId;
|
||||
}
|
||||
|
||||
public Long getConexionId() {
|
||||
return conexionId;
|
||||
}
|
||||
public Long getConexionId() {
|
||||
return conexionId;
|
||||
}
|
||||
|
||||
public void setConexionId(Long conexionId) {
|
||||
this.conexionId = conexionId;
|
||||
}
|
||||
public void setConexionId(Long conexionId) {
|
||||
this.conexionId = conexionId;
|
||||
}
|
||||
|
||||
public Integer getNumgrupo() {
|
||||
return numgrupo;
|
||||
}
|
||||
public Integer getNumgrupo() {
|
||||
return numgrupo;
|
||||
}
|
||||
|
||||
public void setNumgrupo(Integer numgrupo) {
|
||||
this.numgrupo = numgrupo;
|
||||
}
|
||||
public void setNumgrupo(Integer numgrupo) {
|
||||
this.numgrupo = numgrupo;
|
||||
}
|
||||
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
public Short getNumsecuencia() {
|
||||
return numsecuencia;
|
||||
}
|
||||
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
public void setNumsecuencia(Short numsecuencia) {
|
||||
this.numsecuencia = numsecuencia;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (conexionId != null ? conexionId.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (conexionId != null ? conexionId.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 Conexion)) {
|
||||
return false;
|
||||
}
|
||||
Conexion other = (Conexion) object;
|
||||
if ((this.conexionId == null && other.conexionId != null) || (this.conexionId != null && !this.conexionId.equals(other.conexionId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@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 Conexion)) {
|
||||
return false;
|
||||
}
|
||||
Conexion other = (Conexion) object;
|
||||
if ((this.conexionId == null && other.conexionId != null) || (this.conexionId != null && !this.conexionId.equals(other.conexionId))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.entidad.Conexion[ conexionId=" + conexionId + " ]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.entidad.Conexion[ conexionId=" + conexionId + " ]";
|
||||
}
|
||||
|
||||
public Long getConexionctrlId() {
|
||||
return conexionctrlId;
|
||||
|
@ -157,5 +156,4 @@ public class Conexion implements Serializable {
|
|||
public void setDestinoId(Integer destinoId) {
|
||||
this.destinoId = destinoId;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,5 +27,4 @@ public class ConexionServiceImpl implements ConexionService {
|
|||
public List<ConexionVO> buscarConexiones(Integer origenId, Integer destinoId) {
|
||||
return conexionDAO.buscarConexiones(origenId, destinoId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue