rodrigo 2013-03-02 17:54:25 +00:00
parent 73740b7b78
commit 36c3e85b61
1 changed files with 101 additions and 95 deletions

View File

@ -6,7 +6,6 @@ package com.rjconsultores.ventaboletos.entidad;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List;
import javax.persistence.Basic; import javax.persistence.Basic;
import javax.persistence.Column; import javax.persistence.Column;
@ -30,122 +29,122 @@ import javax.persistence.TemporalType;
@Table(name = "ESTACION_SITEF") @Table(name = "ESTACION_SITEF")
@SequenceGenerator(name = "ESTACION_SITEF_SEQ", sequenceName = "ESTACION_SITEF_SEQ", allocationSize = 1) @SequenceGenerator(name = "ESTACION_SITEF_SEQ", sequenceName = "ESTACION_SITEF_SEQ", allocationSize = 1)
public class EstacionSitef implements Serializable { public class EstacionSitef implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
@Basic(optional = false) @Basic(optional = false)
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESTACION_SITEF_SEQ")
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESTACION_SITEF_SEQ") @Column(name = "ESTACIONSITEF_ID")
@Column(name = "ESTACIONSITEF_ID") private Integer estacionsitefId;
private Integer estacionsitefId; @Column(name = "NUMEMPRESA")
@Column(name = "NUMEMPRESA") private Integer numempresa;
private Integer numempresa; @Column(name = "NUMFILIAL")
@Column(name = "NUMFILIAL") private Integer numfilial;
private Integer numfilial; @Column(name = "NUMPDV")
@Column(name = "NUMPDV") private Integer numpdv;
private Integer numpdv; @OneToOne
@OneToOne
@JoinColumn(name = "EMPRESA_ID") @JoinColumn(name = "EMPRESA_ID")
private Empresa empresa; private Empresa empresa;
@ManyToOne @ManyToOne
@JoinColumn(name = "ESTACION_ID", referencedColumnName = "ESTACION_ID") @JoinColumn(name = "ESTACION_ID", referencedColumnName = "ESTACION_ID")
private Estacion estacion; private Estacion estacion;
@Column(name = "USUARIO_ID") @Column(name = "USUARIO_ID")
private Integer usuarioId; private Integer usuarioId;
@Column(name = "ACTIVO") @Column(name = "ACTIVO")
private Boolean activo; private Boolean activo;
@Column(name = "FECMODIF") @Column(name = "FECMODIF")
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
private Date fecmodif; private Date fecmodif;
@Column(name = "IPSERVIDOR")
private String ipServidor;
public EstacionSitef() {
}
public EstacionSitef() { public EstacionSitef(Integer estacionsitefId) {
} this.estacionsitefId = estacionsitefId;
}
public EstacionSitef(Integer estacionsitefId) { public Integer getEstacionsitefId() {
this.estacionsitefId = estacionsitefId; return estacionsitefId;
} }
public Integer getEstacionsitefId() { public void setEstacionsitefId(Integer estacionsitefId) {
return estacionsitefId; this.estacionsitefId = estacionsitefId;
} }
public void setEstacionsitefId(Integer estacionsitefId) { public Integer getNumempresa() {
this.estacionsitefId = estacionsitefId; return numempresa;
} }
public Integer getNumempresa() { public void setNumempresa(Integer numempresa) {
return numempresa; this.numempresa = numempresa;
} }
public void setNumempresa(Integer numempresa) { public Integer getNumfilial() {
this.numempresa = numempresa; return numfilial;
} }
public Integer getNumfilial() { public void setNumfilial(Integer numfilial) {
return numfilial; this.numfilial = numfilial;
} }
public void setNumfilial(Integer numfilial) { public Integer getNumpdv() {
this.numfilial = numfilial; return numpdv;
} }
public Integer getNumpdv() { public void setNumpdv(Integer numpdv) {
return numpdv; this.numpdv = numpdv;
} }
public void setNumpdv(Integer numpdv) { public Integer getUsuarioId() {
this.numpdv = numpdv; return usuarioId;
} }
public Integer getUsuarioId() { public void setUsuarioId(Integer usuarioId) {
return usuarioId; this.usuarioId = usuarioId;
} }
public void setUsuarioId(Integer usuarioId) { public Boolean getActivo() {
this.usuarioId = usuarioId; return activo;
} }
public Boolean getActivo() { public void setActivo(Boolean activo) {
return activo; this.activo = activo;
} }
public void setActivo(Boolean activo) { public Date getFecmodif() {
this.activo = activo; return fecmodif;
} }
public Date getFecmodif() {
return fecmodif;
}
public void setFecmodif(Date fecmodif) {
this.fecmodif = fecmodif;
}
public void setFecmodif(Date fecmodif) {
this.fecmodif = fecmodif;
}
@Override @Override
public int hashCode() { public int hashCode() {
int hash = 0; int hash = 0;
hash += (estacionsitefId != null ? estacionsitefId.hashCode() : 0); hash += (estacionsitefId != null ? estacionsitefId.hashCode() : 0);
return hash; return hash;
} }
@Override @Override
public boolean equals(Object object) { public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set // TODO: Warning - this method won't work in the case the id fields are
if (!(object instanceof EstacionSitef)) { // not set
return false; if (!(object instanceof EstacionSitef)) {
} return false;
EstacionSitef other = (EstacionSitef) object; }
if ((this.estacionsitefId == null && other.estacionsitefId != null) || (this.estacionsitefId != null && !this.estacionsitefId.equals(other.estacionsitefId))) { EstacionSitef other = (EstacionSitef) object;
return false; if ((this.estacionsitefId == null && other.estacionsitefId != null) || (this.estacionsitefId != null && !this.estacionsitefId.equals(other.estacionsitefId))) {
} return false;
return true; }
} return true;
}
@Override @Override
public String toString() { public String toString() {
return "com.rjconsultores.ventaboletos.entidad.EstacionSitef[ estacionsitefId=" + estacionsitefId + " ]"; return "com.rjconsultores.ventaboletos.entidad.EstacionSitef[ estacionsitefId=" + estacionsitefId + " ]";
} }
public Empresa getEmpresa() { public Empresa getEmpresa() {
return empresa; return empresa;
@ -163,4 +162,11 @@ public class EstacionSitef implements Serializable {
this.estacion = estacion; this.estacion = estacion;
} }
public String getIpServidor() {
return ipServidor;
}
public void setIpServidor(String ipServidor) {
this.ipServidor = ipServidor;
}
} }