100 lines
2.4 KiB
Java
100 lines
2.4 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Basic;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
@Entity
|
|
@SequenceGenerator(name = "CONVENIOCAMPANHA_PTOVTA_SEQ", sequenceName = "CONVENIOCAMPANHA_PTOVTA_SEQ", allocationSize = 1)
|
|
@Table(name = "CONVENIOCAMPANHA_PTOVTA")
|
|
public class ConvenioCampanhaPuntoVenta {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CONVENIOCAMPANHA_PTOVTA_SEQ")
|
|
@Column(name = "CONVENIOCAMPANHAPTOVTA_ID")
|
|
private Integer convenioCampanhaPuntoVentaId;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
@JoinColumn(name = "CONVENIO_ID", referencedColumnName = "CONVENIO_ID")
|
|
@ManyToOne
|
|
private Convenio convenio;
|
|
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
|
@ManyToOne
|
|
private PuntoVenta puntoVenta;
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int hash = 0;
|
|
hash += (convenioCampanhaPuntoVentaId != null ? convenioCampanhaPuntoVentaId.hashCode() : 0);
|
|
return hash;
|
|
}
|
|
|
|
public Integer getConvenioCampanhaPuntoVentaId() {
|
|
return convenioCampanhaPuntoVentaId;
|
|
}
|
|
|
|
public void setConvenioCampanhaPuntoVentaId(Integer convenioCampanhaPuntoVentaId) {
|
|
this.convenioCampanhaPuntoVentaId = convenioCampanhaPuntoVentaId;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
public Convenio getConvenio() {
|
|
return convenio;
|
|
}
|
|
|
|
public void setConvenio(Convenio convenio) {
|
|
this.convenio = convenio;
|
|
}
|
|
|
|
public PuntoVenta getPuntoVenta() {
|
|
return puntoVenta;
|
|
}
|
|
|
|
public void setPuntoVenta(PuntoVenta puntoVenta) {
|
|
this.puntoVenta = puntoVenta;
|
|
}
|
|
|
|
}
|