From 62768b2673d2a24f11e0807ff5fcaf1761e9cb76 Mon Sep 17 00:00:00 2001 From: rodrigo Date: Thu, 13 Sep 2012 14:04:00 +0000 Subject: [PATCH] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@21332 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/entidad/Estacion.java | 265 ++++++++++-------- 1 file changed, 142 insertions(+), 123 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/entidad/Estacion.java b/src/com/rjconsultores/ventaboletos/entidad/Estacion.java index 16ce25dbd..7784a80aa 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/Estacion.java +++ b/src/com/rjconsultores/ventaboletos/entidad/Estacion.java @@ -20,7 +20,7 @@ import javax.persistence.Temporal; import javax.persistence.TemporalType; /** - * + * * @author Administrador */ @Entity @@ -28,153 +28,172 @@ import javax.persistence.TemporalType; @SequenceGenerator(name = "ESTACION_SEQ", sequenceName = "ESTACION_SEQ", allocationSize = 1) public class Estacion implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @Basic(optional = false) - @GeneratedValue(strategy = GenerationType.AUTO, generator = "ESTACION_SEQ") - @Column(name = "ESTACION_ID") - private Integer estacionId; - @Column(name = "NUMCAJA") - private Long numcaja; - @Column(name = "DESCESTACION") - private String descestacion; - @Column(name = "DESCMAC") - private String descmac; - @Column(name = "INDCONEXIONBANCARIA") - private String conexionBancaria; - @Column(name = "ACTIVO") - private Boolean activo; - @Column(name = "INDIMPRESIONPINPAD") - private Boolean pinPadImpresoraPropia; - @Column(name = "FECMODIF") - @Temporal(TemporalType.TIMESTAMP) - private Date fecmodif; - @Column(name = "USUARIO_ID") - private Integer usuarioId; - @OneToOne - @JoinColumn(name = "PUNTOVENTA_ID") - private PuntoVenta puntoVenta; - @OneToOne - @JoinColumn(name = "USUARIOBANCARIO_ID") - private UsuarioBancario usuarioBancario; + private static final long serialVersionUID = 1L; + @Id + @Basic(optional = false) + @GeneratedValue(strategy = GenerationType.AUTO, generator = "ESTACION_SEQ") + @Column(name = "ESTACION_ID") + private Integer estacionId; + @Column(name = "NUMCAJA") + private Long numcaja; + @Column(name = "DESCESTACION") + private String descestacion; + @Column(name = "DESCMAC") + private String descmac; + @Column(name = "INDCONEXIONBANCARIA") + private String conexionBancaria; + @Column(name = "ACTIVO") + private Boolean activo; + @Column(name = "INDIMPRESIONPINPAD") + private Boolean pinPadImpresoraPropia; + @Column(name = "FECMODIF") + @Temporal(TemporalType.TIMESTAMP) + private Date fecmodif; + @Column(name = "USUARIO_ID") + private Integer usuarioId; + @OneToOne + @JoinColumn(name = "PUNTOVENTA_ID") + private PuntoVenta puntoVenta; + @OneToOne + @JoinColumn(name = "USUARIOBANCARIO_ID") + private UsuarioBancario usuarioBancario; + @Column(name = "NOMEIMPRESSORA") + private String nomeImpressora; + @Column(name = "NOMEARQUIVOLAYOUT") + private String nomeArquivoLayout; - public Estacion() { - } + public Estacion() { + } - public Estacion(Integer estacionId) { - this.estacionId = estacionId; - } + public Estacion(Integer estacionId) { + this.estacionId = estacionId; + } - public Integer getEstacionId() { - return estacionId; - } + public Integer getEstacionId() { + return estacionId; + } - public void setEstacionId(Integer estacionId) { - this.estacionId = estacionId; - } + public void setEstacionId(Integer estacionId) { + this.estacionId = estacionId; + } - public Long getNumcaja() { - return numcaja; - } + public Long getNumcaja() { + return numcaja; + } - public void setNumcaja(Long numcaja) { - this.numcaja = numcaja; - } + public void setNumcaja(Long numcaja) { + this.numcaja = numcaja; + } - public String getDescestacion() { - return descestacion; - } + public String getDescestacion() { + return descestacion; + } - public void setDescestacion(String descestacion) { - this.descestacion = descestacion; - } + public void setDescestacion(String descestacion) { + this.descestacion = descestacion; + } - public String getDescmac() { - return descmac; - } + public String getDescmac() { + return descmac; + } - public void setDescmac(String descmac) { - this.descmac = descmac; - } + public void setDescmac(String descmac) { + this.descmac = descmac; + } - 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; + } - public PuntoVenta getPuntoVenta() { - return puntoVenta; - } + public PuntoVenta getPuntoVenta() { + return puntoVenta; + } - public void setPuntoVenta(PuntoVenta puntoVenta) { - this.puntoVenta = puntoVenta; - } + public void setPuntoVenta(PuntoVenta puntoVenta) { + this.puntoVenta = puntoVenta; + } - public UsuarioBancario getUsuarioBancario() { - return usuarioBancario; - } + public UsuarioBancario getUsuarioBancario() { + return usuarioBancario; + } - public void setUsuarioBancario(UsuarioBancario usuarioBancario) { - this.usuarioBancario = usuarioBancario; - } + public void setUsuarioBancario(UsuarioBancario usuarioBancario) { + this.usuarioBancario = usuarioBancario; + } - public String getConexionBancaria() { - return conexionBancaria; - } + public String getConexionBancaria() { + return conexionBancaria; + } - public void setConexionBancaria(String conexionBancaria) { - this.conexionBancaria = conexionBancaria; - } + public void setConexionBancaria(String conexionBancaria) { + this.conexionBancaria = conexionBancaria; + } - public Boolean getPinPadImpresoraPropia() { - return pinPadImpresoraPropia; - } + public Boolean getPinPadImpresoraPropia() { + return pinPadImpresoraPropia; + } - public void setPinPadImpresoraPropia(Boolean pinPadImpresoraPropia) { - this.pinPadImpresoraPropia = pinPadImpresoraPropia; - } + public void setPinPadImpresoraPropia(Boolean pinPadImpresoraPropia) { + this.pinPadImpresoraPropia = pinPadImpresoraPropia; + } - @Override - public int hashCode() { - int hash = 0; - hash += (estacionId != null ? estacionId.hashCode() : 0); - return hash; - } + public String getNomeImpressora() { + return nomeImpressora; + } - @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 Estacion)) { - return false; - } - Estacion other = (Estacion) object; - if ((this.estacionId == null && other.estacionId != null) || (this.estacionId != null && !this.estacionId.equals(other.estacionId))) { - return false; - } - return true; - } + public void setNomeImpressora(String nomeImpressora) { + this.nomeImpressora = nomeImpressora; + } - @Override - public String toString() { - return "com.rjconsultores.ventaboletos.entidad.Estacion[estacionId=" + estacionId + "]"; - } + public String getNomeArquivoLayout() { + return nomeArquivoLayout; + } + + public void setNomeArquivoLayout(String nomeArquivoLayout) { + this.nomeArquivoLayout = nomeArquivoLayout; + } + + @Override + public int hashCode() { + int hash = 0; + hash += (estacionId != null ? estacionId.hashCode() : 0); + return hash; + } + + @Override + public boolean equals(Object object) { + if (!(object instanceof Estacion)) { + return false; + } + Estacion other = (Estacion) object; + if ((this.estacionId == null && other.estacionId != null) || (this.estacionId != null && !this.estacionId.equals(other.estacionId))) { + return false; + } + return true; + } + + @Override + public String toString() { + return "com.rjconsultores.ventaboletos.entidad.Estacion[estacionId=" + estacionId + "]"; + } }