128 lines
3.4 KiB
Java
128 lines
3.4 KiB
Java
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
/**
|
|
*
|
|
* @author Rafius
|
|
*/
|
|
@Entity
|
|
@SequenceGenerator(name = "PARAM_COMPRA_PUNTO_SEQ", sequenceName = "PARAM_COMPRA_PUNTO_SEQ", allocationSize=1)
|
|
@Table(name = "PARAM_COMPRA_PUNTO")
|
|
public class ParamCompraPunto implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PARAM_COMPRA_PUNTO_SEQ")
|
|
@Column(name = "PARAMCOMPRAPUNTO_ID")
|
|
private Integer paramcomprapuntoId;
|
|
@Column(name = "FECINICIOVIGENCIA")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date feciniciovigencia;
|
|
@Column(name = "FECFINVIGENCIA")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecfinvigencia;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
|
|
public ParamCompraPunto() {
|
|
}
|
|
|
|
public ParamCompraPunto(Integer paramcomprapuntoId) {
|
|
this.paramcomprapuntoId = paramcomprapuntoId;
|
|
}
|
|
|
|
public Integer getParamcomprapuntoId() {
|
|
return paramcomprapuntoId;
|
|
}
|
|
|
|
public void setParamcomprapuntoId(Integer paramcomprapuntoId) {
|
|
this.paramcomprapuntoId = paramcomprapuntoId;
|
|
}
|
|
|
|
public Date getFeciniciovigencia() {
|
|
return feciniciovigencia;
|
|
}
|
|
|
|
public void setFeciniciovigencia(Date feciniciovigencia) {
|
|
this.feciniciovigencia = feciniciovigencia;
|
|
}
|
|
|
|
public Date getFecfinvigencia() {
|
|
return fecfinvigencia;
|
|
}
|
|
|
|
public void setFecfinvigencia(Date fecfinvigencia) {
|
|
this.fecfinvigencia = fecfinvigencia;
|
|
}
|
|
|
|
public Boolean getActivo() {
|
|
return activo;
|
|
}
|
|
|
|
public void setActivo(Boolean activo) {
|
|
this.activo = activo;
|
|
}
|
|
|
|
public Date getFecmodif() {
|
|
return fecmodif;
|
|
}
|
|
|
|
public void setFecmodif(Date fecmodif) {
|
|
this.fecmodif = fecmodif;
|
|
}
|
|
|
|
public Integer getUsuarioId() {
|
|
return usuarioId;
|
|
}
|
|
|
|
public void setUsuarioId(Integer usuarioId) {
|
|
this.usuarioId = usuarioId;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int hash = 0;
|
|
hash += (paramcomprapuntoId != null ? paramcomprapuntoId.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 ParamCompraPunto)) {
|
|
return false;
|
|
}
|
|
ParamCompraPunto other = (ParamCompraPunto) object;
|
|
if ((this.paramcomprapuntoId == null && other.paramcomprapuntoId != null) || (this.paramcomprapuntoId != null && !this.paramcomprapuntoId.equals(other.paramcomprapuntoId))) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "te.ParamCompraPunto[paramcomprapuntoId=" + paramcomprapuntoId + "]";
|
|
}
|
|
}
|