82 lines
2.4 KiB
Java
82 lines
2.4 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
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_EMPRESA_SEQ", sequenceName="CONVENIOCAMPANHA_EMPRESA_SEQ", allocationSize=1)
|
|
@Table(name="CONVENIOCAMPANHA_EMPRESA")
|
|
public class ConvenioCampanhaEmpresa implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CONVENIOCAMPANHA_EMPRESA_SEQ")
|
|
@Column(name = "CONVENIOCAMPANHAEMPRESA_ID")
|
|
private Integer convenioCampanhaEmpresaId;
|
|
@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 = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
|
|
@ManyToOne
|
|
private Empresa empresa;
|
|
public Integer getConvenioCampanhaEmpresaId() {
|
|
return convenioCampanhaEmpresaId;
|
|
}
|
|
public void setConvenioCampanhaEmpresaId(Integer convenioCampanhaEmpresaId) {
|
|
this.convenioCampanhaEmpresaId = convenioCampanhaEmpresaId;
|
|
}
|
|
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 Empresa getEmpresa() {
|
|
return empresa;
|
|
}
|
|
public void setEmpresa(Empresa empresa) {
|
|
this.empresa = empresa;
|
|
}
|
|
|
|
}
|