git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@21332 d1611594-4594-4d17-8e1d-87c2c4800839
parent
b00d5bd911
commit
62768b2673
|
@ -28,153 +28,172 @@ import javax.persistence.TemporalType;
|
||||||
@SequenceGenerator(name = "ESTACION_SEQ", sequenceName = "ESTACION_SEQ", allocationSize = 1)
|
@SequenceGenerator(name = "ESTACION_SEQ", sequenceName = "ESTACION_SEQ", allocationSize = 1)
|
||||||
public class Estacion implements Serializable {
|
public class Estacion 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_SEQ")
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESTACION_SEQ")
|
||||||
@Column(name = "ESTACION_ID")
|
@Column(name = "ESTACION_ID")
|
||||||
private Integer estacionId;
|
private Integer estacionId;
|
||||||
@Column(name = "NUMCAJA")
|
@Column(name = "NUMCAJA")
|
||||||
private Long numcaja;
|
private Long numcaja;
|
||||||
@Column(name = "DESCESTACION")
|
@Column(name = "DESCESTACION")
|
||||||
private String descestacion;
|
private String descestacion;
|
||||||
@Column(name = "DESCMAC")
|
@Column(name = "DESCMAC")
|
||||||
private String descmac;
|
private String descmac;
|
||||||
@Column(name = "INDCONEXIONBANCARIA")
|
@Column(name = "INDCONEXIONBANCARIA")
|
||||||
private String conexionBancaria;
|
private String conexionBancaria;
|
||||||
@Column(name = "ACTIVO")
|
@Column(name = "ACTIVO")
|
||||||
private Boolean activo;
|
private Boolean activo;
|
||||||
@Column(name = "INDIMPRESIONPINPAD")
|
@Column(name = "INDIMPRESIONPINPAD")
|
||||||
private Boolean pinPadImpresoraPropia;
|
private Boolean pinPadImpresoraPropia;
|
||||||
@Column(name = "FECMODIF")
|
@Column(name = "FECMODIF")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Date fecmodif;
|
private Date fecmodif;
|
||||||
@Column(name = "USUARIO_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer usuarioId;
|
private Integer usuarioId;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "PUNTOVENTA_ID")
|
@JoinColumn(name = "PUNTOVENTA_ID")
|
||||||
private PuntoVenta puntoVenta;
|
private PuntoVenta puntoVenta;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@JoinColumn(name = "USUARIOBANCARIO_ID")
|
@JoinColumn(name = "USUARIOBANCARIO_ID")
|
||||||
private UsuarioBancario usuarioBancario;
|
private UsuarioBancario usuarioBancario;
|
||||||
|
@Column(name = "NOMEIMPRESSORA")
|
||||||
|
private String nomeImpressora;
|
||||||
|
@Column(name = "NOMEARQUIVOLAYOUT")
|
||||||
|
private String nomeArquivoLayout;
|
||||||
|
|
||||||
public Estacion() {
|
public Estacion() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Estacion(Integer estacionId) {
|
public Estacion(Integer estacionId) {
|
||||||
this.estacionId = estacionId;
|
this.estacionId = estacionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getEstacionId() {
|
public Integer getEstacionId() {
|
||||||
return estacionId;
|
return estacionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEstacionId(Integer estacionId) {
|
public void setEstacionId(Integer estacionId) {
|
||||||
this.estacionId = estacionId;
|
this.estacionId = estacionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getNumcaja() {
|
public Long getNumcaja() {
|
||||||
return numcaja;
|
return numcaja;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNumcaja(Long numcaja) {
|
public void setNumcaja(Long numcaja) {
|
||||||
this.numcaja = numcaja;
|
this.numcaja = numcaja;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescestacion() {
|
public String getDescestacion() {
|
||||||
return descestacion;
|
return descestacion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDescestacion(String descestacion) {
|
public void setDescestacion(String descestacion) {
|
||||||
this.descestacion = descestacion;
|
this.descestacion = descestacion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescmac() {
|
public String getDescmac() {
|
||||||
return descmac;
|
return descmac;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDescmac(String descmac) {
|
public void setDescmac(String descmac) {
|
||||||
this.descmac = descmac;
|
this.descmac = descmac;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getActivo() {
|
public Boolean getActivo() {
|
||||||
return activo;
|
return activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setActivo(Boolean activo) {
|
public void setActivo(Boolean activo) {
|
||||||
this.activo = activo;
|
this.activo = activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getFecmodif() {
|
public Date getFecmodif() {
|
||||||
return fecmodif;
|
return fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFecmodif(Date fecmodif) {
|
public void setFecmodif(Date fecmodif) {
|
||||||
this.fecmodif = fecmodif;
|
this.fecmodif = fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getUsuarioId() {
|
public Integer getUsuarioId() {
|
||||||
return usuarioId;
|
return usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsuarioId(Integer usuarioId) {
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
this.usuarioId = usuarioId;
|
this.usuarioId = usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PuntoVenta getPuntoVenta() {
|
public PuntoVenta getPuntoVenta() {
|
||||||
return puntoVenta;
|
return puntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPuntoVenta(PuntoVenta puntoVenta) {
|
public void setPuntoVenta(PuntoVenta puntoVenta) {
|
||||||
this.puntoVenta = puntoVenta;
|
this.puntoVenta = puntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public UsuarioBancario getUsuarioBancario() {
|
public UsuarioBancario getUsuarioBancario() {
|
||||||
return usuarioBancario;
|
return usuarioBancario;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsuarioBancario(UsuarioBancario usuarioBancario) {
|
public void setUsuarioBancario(UsuarioBancario usuarioBancario) {
|
||||||
this.usuarioBancario = usuarioBancario;
|
this.usuarioBancario = usuarioBancario;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getConexionBancaria() {
|
public String getConexionBancaria() {
|
||||||
return conexionBancaria;
|
return conexionBancaria;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConexionBancaria(String conexionBancaria) {
|
public void setConexionBancaria(String conexionBancaria) {
|
||||||
this.conexionBancaria = conexionBancaria;
|
this.conexionBancaria = conexionBancaria;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getPinPadImpresoraPropia() {
|
public Boolean getPinPadImpresoraPropia() {
|
||||||
return pinPadImpresoraPropia;
|
return pinPadImpresoraPropia;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPinPadImpresoraPropia(Boolean pinPadImpresoraPropia) {
|
public void setPinPadImpresoraPropia(Boolean pinPadImpresoraPropia) {
|
||||||
this.pinPadImpresoraPropia = pinPadImpresoraPropia;
|
this.pinPadImpresoraPropia = pinPadImpresoraPropia;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public String getNomeImpressora() {
|
||||||
public int hashCode() {
|
return nomeImpressora;
|
||||||
int hash = 0;
|
}
|
||||||
hash += (estacionId != null ? estacionId.hashCode() : 0);
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
public void setNomeImpressora(String nomeImpressora) {
|
||||||
public boolean equals(Object object) {
|
this.nomeImpressora = nomeImpressora;
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
public String getNomeArquivoLayout() {
|
||||||
public String toString() {
|
return nomeArquivoLayout;
|
||||||
return "com.rjconsultores.ventaboletos.entidad.Estacion[estacionId=" + estacionId + "]";
|
}
|
||||||
}
|
|
||||||
|
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 + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue