109 lines
2.5 KiB
Java
109 lines
2.5 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
import java.math.BigDecimal;
|
|
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.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
@Entity
|
|
@Table(name = "PACOTE_DESCONTO_BILHETE")
|
|
@SequenceGenerator(name = "PACOTE_DESCONTO_BILHETE_SEQ", sequenceName = "PACOTE_DESCONTO_BILHETE_SEQ", allocationSize = 1)
|
|
public class PacoteDescontoBilhete implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Id
|
|
@Column(name = "PACOTEDESCONTOBILHETE_ID")
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PACOTE_DESCONTO_BILHETE_SEQ")
|
|
private Long pacotedescontobilheteId;
|
|
|
|
@Column(name = "PERCDESCONTO")
|
|
private BigDecimal percdesconto;
|
|
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
@Column(name = "FECMODIF")
|
|
private Date fecmodif;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "PACOTE_ID")
|
|
private Pacote pacote;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "CLASESERVICIO_ID")
|
|
private ClaseServicio claseServicio;
|
|
|
|
public Long getPacotedescontobilheteId() {
|
|
return pacotedescontobilheteId;
|
|
}
|
|
|
|
public void setPacotedescontobilheteId(Long pacotedescontobilheteId) {
|
|
this.pacotedescontobilheteId = pacotedescontobilheteId;
|
|
}
|
|
|
|
public BigDecimal getPercdesconto() {
|
|
return percdesconto;
|
|
}
|
|
|
|
public void setPercdesconto(BigDecimal percdesconto) {
|
|
this.percdesconto = percdesconto;
|
|
}
|
|
|
|
public Integer getUsuarioId() {
|
|
return usuarioId;
|
|
}
|
|
|
|
public void setUsuarioId(Integer usuarioId) {
|
|
this.usuarioId = usuarioId;
|
|
}
|
|
|
|
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 Pacote getPacote() {
|
|
return pacote;
|
|
}
|
|
|
|
public void setPacote(Pacote pacote) {
|
|
this.pacote = pacote;
|
|
}
|
|
|
|
public ClaseServicio getClaseServicio() {
|
|
return claseServicio;
|
|
}
|
|
|
|
public void setClaseServicio(ClaseServicio claseServicio) {
|
|
this.claseServicio = claseServicio;
|
|
}
|
|
|
|
}
|