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.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
@ -23,129 +22,129 @@ import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
*
*
* @author RJ
*/
@Entity
@Table(name = "ESTACION_SITEF")
@SequenceGenerator(name = "ESTACION_SITEF_SEQ", sequenceName = "ESTACION_SITEF_SEQ", allocationSize = 1)
public class EstacionSitef implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESTACION_SITEF_SEQ")
@Column(name = "ESTACIONSITEF_ID")
private Integer estacionsitefId;
@Column(name = "NUMEMPRESA")
private Integer numempresa;
@Column(name = "NUMFILIAL")
private Integer numfilial;
@Column(name = "NUMPDV")
private Integer numpdv;
@OneToOne
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESTACION_SITEF_SEQ")
@Column(name = "ESTACIONSITEF_ID")
private Integer estacionsitefId;
@Column(name = "NUMEMPRESA")
private Integer numempresa;
@Column(name = "NUMFILIAL")
private Integer numfilial;
@Column(name = "NUMPDV")
private Integer numpdv;
@OneToOne
@JoinColumn(name = "EMPRESA_ID")
private Empresa empresa;
@ManyToOne
@ManyToOne
@JoinColumn(name = "ESTACION_ID", referencedColumnName = "ESTACION_ID")
private Estacion estacion;
@Column(name = "USUARIO_ID")
private Integer usuarioId;
@Column(name = "ACTIVO")
private Boolean activo;
@Column(name = "FECMODIF")
@Temporal(TemporalType.TIMESTAMP)
private Date fecmodif;
@Column(name = "USUARIO_ID")
private Integer usuarioId;
@Column(name = "ACTIVO")
private Boolean activo;
@Column(name = "FECMODIF")
@Temporal(TemporalType.TIMESTAMP)
private Date fecmodif;
@Column(name = "IPSERVIDOR")
private String ipServidor;
public EstacionSitef() {
}
public EstacionSitef() {
}
public EstacionSitef(Integer estacionsitefId) {
this.estacionsitefId = estacionsitefId;
}
public EstacionSitef(Integer estacionsitefId) {
this.estacionsitefId = estacionsitefId;
}
public Integer getEstacionsitefId() {
return estacionsitefId;
}
public Integer getEstacionsitefId() {
return estacionsitefId;
}
public void setEstacionsitefId(Integer estacionsitefId) {
this.estacionsitefId = estacionsitefId;
}
public void setEstacionsitefId(Integer estacionsitefId) {
this.estacionsitefId = estacionsitefId;
}
public Integer getNumempresa() {
return numempresa;
}
public Integer getNumempresa() {
return numempresa;
}
public void setNumempresa(Integer numempresa) {
this.numempresa = numempresa;
}
public void setNumempresa(Integer numempresa) {
this.numempresa = numempresa;
}
public Integer getNumfilial() {
return numfilial;
}
public Integer getNumfilial() {
return numfilial;
}
public void setNumfilial(Integer numfilial) {
this.numfilial = numfilial;
}
public void setNumfilial(Integer numfilial) {
this.numfilial = numfilial;
}
public Integer getNumpdv() {
return numpdv;
}
public Integer getNumpdv() {
return numpdv;
}
public void setNumpdv(Integer numpdv) {
this.numpdv = numpdv;
}
public void setNumpdv(Integer numpdv) {
this.numpdv = numpdv;
}
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;
}
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;
}
@Override
public int hashCode() {
int hash = 0;
hash += (estacionsitefId != null ? estacionsitefId.hashCode() : 0);
return hash;
}
public int hashCode() {
int hash = 0;
hash += (estacionsitefId != null ? estacionsitefId.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 EstacionSitef)) {
return false;
}
EstacionSitef other = (EstacionSitef) object;
if ((this.estacionsitefId == null && other.estacionsitefId != null) || (this.estacionsitefId != null && !this.estacionsitefId.equals(other.estacionsitefId))) {
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 EstacionSitef)) {
return false;
}
EstacionSitef other = (EstacionSitef) object;
if ((this.estacionsitefId == null && other.estacionsitefId != null) || (this.estacionsitefId != null && !this.estacionsitefId.equals(other.estacionsitefId))) {
return false;
}
return true;
}
@Override
public String toString() {
return "com.rjconsultores.ventaboletos.entidad.EstacionSitef[ estacionsitefId=" + estacionsitefId + " ]";
}
@Override
public String toString() {
return "com.rjconsultores.ventaboletos.entidad.EstacionSitef[ estacionsitefId=" + estacionsitefId + " ]";
}
public Empresa getEmpresa() {
return empresa;
@ -162,5 +161,12 @@ public class EstacionSitef implements Serializable {
public void setEstacion(Estacion estacion) {
this.estacion = estacion;
}
public String getIpServidor() {
return ipServidor;
}
public void setIpServidor(String ipServidor) {
this.ipServidor = ipServidor;
}
}