Classes Carla
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@22177 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
32f3943136
commit
2de9cad3c9
|
@ -0,0 +1,211 @@
|
|||
/*
|
||||
* 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.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_AGENCIA")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaAgencia.findAll", query = "SELECT p FROM PtovtaAgencia p")})
|
||||
public class PtovtaAgencia implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "NUMAGENCIA")
|
||||
private String numagencia;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "NUMCONTA")
|
||||
private String numconta;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "PESSOA")
|
||||
private String pessoa;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "TIPO")
|
||||
private String tipo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "BILHETES")
|
||||
private String bilhetes;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CARGA")
|
||||
private String carga;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PuntoVenta puntoventaId;
|
||||
@JoinColumn(name = "BANCO_ID", referencedColumnName = "ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PtovtaBanco bancoId;
|
||||
|
||||
public PtovtaAgencia() {
|
||||
}
|
||||
|
||||
public PtovtaAgencia(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaAgencia(Integer id, String numagencia, String numconta, String pessoa, String tipo, String bilhetes, String carga, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.numagencia = numagencia;
|
||||
this.numconta = numconta;
|
||||
this.pessoa = pessoa;
|
||||
this.tipo = tipo;
|
||||
this.bilhetes = bilhetes;
|
||||
this.carga = carga;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getNumagencia() {
|
||||
return numagencia;
|
||||
}
|
||||
|
||||
public void setNumagencia(String numagencia) {
|
||||
this.numagencia = numagencia;
|
||||
}
|
||||
|
||||
public String getNumconta() {
|
||||
return numconta;
|
||||
}
|
||||
|
||||
public void setNumconta(String numconta) {
|
||||
this.numconta = numconta;
|
||||
}
|
||||
|
||||
public String getPessoa() {
|
||||
return pessoa;
|
||||
}
|
||||
|
||||
public void setPessoa(String pessoa) {
|
||||
this.pessoa = pessoa;
|
||||
}
|
||||
|
||||
public String getTipo() {
|
||||
return tipo;
|
||||
}
|
||||
|
||||
public void setTipo(String tipo) {
|
||||
this.tipo = tipo;
|
||||
}
|
||||
|
||||
public String getBilhetes() {
|
||||
return bilhetes;
|
||||
}
|
||||
|
||||
public void setBilhetes(String bilhetes) {
|
||||
this.bilhetes = bilhetes;
|
||||
}
|
||||
|
||||
public String getCarga() {
|
||||
return carga;
|
||||
}
|
||||
|
||||
public void setCarga(String carga) {
|
||||
this.carga = carga;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(PuntoVenta puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
public PtovtaBanco getBancoId() {
|
||||
return bancoId;
|
||||
}
|
||||
|
||||
public void setBancoId(PtovtaBanco bancoId) {
|
||||
this.bancoId = bancoId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaAgencia)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaAgencia other = (PtovtaAgencia) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaAgencia[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,165 @@
|
|||
/*
|
||||
* 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.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_ANTECIPACOMISSAO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaAntecipacomissao.findAll", query = "SELECT p FROM PtovtaAntecipacomissao p")})
|
||||
public class PtovtaAntecipacomissao implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "DATA")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date data;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "RETEM")
|
||||
private int retem;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "PERCENTUAL")
|
||||
private int percentual;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PuntoVenta puntoventaId;
|
||||
|
||||
public PtovtaAntecipacomissao() {
|
||||
}
|
||||
|
||||
public PtovtaAntecipacomissao(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaAntecipacomissao(Integer id, Date data, int retem, int percentual, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.data = data;
|
||||
this.retem = retem;
|
||||
this.percentual = percentual;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Date getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Date data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public int getRetem() {
|
||||
return retem;
|
||||
}
|
||||
|
||||
public void setRetem(int retem) {
|
||||
this.retem = retem;
|
||||
}
|
||||
|
||||
public int getPercentual() {
|
||||
return percentual;
|
||||
}
|
||||
|
||||
public void setPercentual(int percentual) {
|
||||
this.percentual = percentual;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(PuntoVenta puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaAntecipacomissao)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaAntecipacomissao other = (PtovtaAntecipacomissao) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,152 @@
|
|||
/*
|
||||
* 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 java.util.List;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_BANCO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaBanco.findAll", query = "SELECT p FROM PtovtaBanco p")})
|
||||
public class PtovtaBanco implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CODIGO")
|
||||
private int codigo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "NOME")
|
||||
private String nome;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private int activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "bancoId")
|
||||
private List<PtovtaAgencia> ptovtaAgenciaList;
|
||||
|
||||
public PtovtaBanco() {
|
||||
}
|
||||
|
||||
public PtovtaBanco(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaBanco(Integer id, int codigo, String nome, int activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.codigo = codigo;
|
||||
this.nome = nome;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getCodigo() {
|
||||
return codigo;
|
||||
}
|
||||
|
||||
public void setCodigo(int codigo) {
|
||||
this.codigo = codigo;
|
||||
}
|
||||
|
||||
public String getNome() {
|
||||
return nome;
|
||||
}
|
||||
|
||||
public void setNome(String nome) {
|
||||
this.nome = nome;
|
||||
}
|
||||
|
||||
public int getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(int activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public List<PtovtaAgencia> getPtovtaAgenciaList() {
|
||||
return ptovtaAgenciaList;
|
||||
}
|
||||
|
||||
public void setPtovtaAgenciaList(List<PtovtaAgencia> ptovtaAgenciaList) {
|
||||
this.ptovtaAgenciaList = ptovtaAgenciaList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaBanco)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaBanco other = (PtovtaBanco) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaBanco[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,237 @@
|
|||
/*
|
||||
* 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 java.util.List;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_COMISSAO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaComissao.findAll", query = "SELECT p FROM PtovtaComissao p")})
|
||||
public class PtovtaComissao implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ISSRETIDO")
|
||||
private int issretido;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ROYALTIES")
|
||||
private int royalties;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ENVIARRECIBO")
|
||||
private short enviarrecibo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "RECEITA")
|
||||
private String receita;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CODAG")
|
||||
private int codag;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "IDCOMPOSICAO")
|
||||
private int idcomposicao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "IDPERCENTUAL")
|
||||
private int idpercentual;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "DESTINO_ID")
|
||||
private int destinoId;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "comissaoId")
|
||||
private List<PtovtaComissaoComposicao> ptovtaComissaoComposicaoList;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PuntoVenta puntoventaId;
|
||||
|
||||
public PtovtaComissao() {
|
||||
}
|
||||
|
||||
public PtovtaComissao(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaComissao(Integer id, int issretido, int royalties, short enviarrecibo, String receita, int codag, int idcomposicao, int idpercentual, int destinoId, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.issretido = issretido;
|
||||
this.royalties = royalties;
|
||||
this.enviarrecibo = enviarrecibo;
|
||||
this.receita = receita;
|
||||
this.codag = codag;
|
||||
this.idcomposicao = idcomposicao;
|
||||
this.idpercentual = idpercentual;
|
||||
this.destinoId = destinoId;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getIssretido() {
|
||||
return issretido;
|
||||
}
|
||||
|
||||
public void setIssretido(int issretido) {
|
||||
this.issretido = issretido;
|
||||
}
|
||||
|
||||
public int getRoyalties() {
|
||||
return royalties;
|
||||
}
|
||||
|
||||
public void setRoyalties(int royalties) {
|
||||
this.royalties = royalties;
|
||||
}
|
||||
|
||||
public short getEnviarrecibo() {
|
||||
return enviarrecibo;
|
||||
}
|
||||
|
||||
public void setEnviarrecibo(short enviarrecibo) {
|
||||
this.enviarrecibo = enviarrecibo;
|
||||
}
|
||||
|
||||
public String getReceita() {
|
||||
return receita;
|
||||
}
|
||||
|
||||
public void setReceita(String receita) {
|
||||
this.receita = receita;
|
||||
}
|
||||
|
||||
public int getCodag() {
|
||||
return codag;
|
||||
}
|
||||
|
||||
public void setCodag(int codag) {
|
||||
this.codag = codag;
|
||||
}
|
||||
|
||||
public int getIdcomposicao() {
|
||||
return idcomposicao;
|
||||
}
|
||||
|
||||
public void setIdcomposicao(int idcomposicao) {
|
||||
this.idcomposicao = idcomposicao;
|
||||
}
|
||||
|
||||
public int getIdpercentual() {
|
||||
return idpercentual;
|
||||
}
|
||||
|
||||
public void setIdpercentual(int idpercentual) {
|
||||
this.idpercentual = idpercentual;
|
||||
}
|
||||
|
||||
public int getDestinoId() {
|
||||
return destinoId;
|
||||
}
|
||||
|
||||
public void setDestinoId(int destinoId) {
|
||||
this.destinoId = destinoId;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public List<PtovtaComissaoComposicao> getPtovtaComissaoComposicaoList() {
|
||||
return ptovtaComissaoComposicaoList;
|
||||
}
|
||||
|
||||
public void setPtovtaComissaoComposicaoList(List<PtovtaComissaoComposicao> ptovtaComissaoComposicaoList) {
|
||||
this.ptovtaComissaoComposicaoList = ptovtaComissaoComposicaoList;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(PuntoVenta puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaComissao)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaComissao other = (PtovtaComissao) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaComissao[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,95 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_COMISSAO_COMPOSICAO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaComissaoComposicao.findAll", query = "SELECT p FROM PtovtaComissaoComposicao p")})
|
||||
public class PtovtaComissaoComposicao implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@JoinColumn(name = "COMPOSICAO_ID", referencedColumnName = "ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PtovtaComposicao composicaoId;
|
||||
@JoinColumn(name = "COMISSAO_ID", referencedColumnName = "ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PtovtaComissao comissaoId;
|
||||
|
||||
public PtovtaComissaoComposicao() {
|
||||
}
|
||||
|
||||
public PtovtaComissaoComposicao(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaComposicao getComposicaoId() {
|
||||
return composicaoId;
|
||||
}
|
||||
|
||||
public void setComposicaoId(PtovtaComposicao composicaoId) {
|
||||
this.composicaoId = composicaoId;
|
||||
}
|
||||
|
||||
public PtovtaComissao getComissaoId() {
|
||||
return comissaoId;
|
||||
}
|
||||
|
||||
public void setComissaoId(PtovtaComissao comissaoId) {
|
||||
this.comissaoId = comissaoId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaComissaoComposicao)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaComissaoComposicao other = (PtovtaComissaoComposicao) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaComissaoComposicao[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_COMISSAO_PERCENTUAL")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaComissaoPercentual.findAll", query = "SELECT p FROM PtovtaComissaoPercentual p")})
|
||||
public class PtovtaComissaoPercentual implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "COMISSAO_ID")
|
||||
private int comissaoId;
|
||||
@JoinColumn(name = "PERCENTUAL_ID", referencedColumnName = "ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PtovtaPercentual percentualId;
|
||||
|
||||
public PtovtaComissaoPercentual() {
|
||||
}
|
||||
|
||||
public PtovtaComissaoPercentual(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaComissaoPercentual(Integer id, int comissaoId) {
|
||||
this.id = id;
|
||||
this.comissaoId = comissaoId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getComissaoId() {
|
||||
return comissaoId;
|
||||
}
|
||||
|
||||
public void setComissaoId(int comissaoId) {
|
||||
this.comissaoId = comissaoId;
|
||||
}
|
||||
|
||||
public PtovtaPercentual getPercentualId() {
|
||||
return percentualId;
|
||||
}
|
||||
|
||||
public void setPercentualId(PtovtaPercentual percentualId) {
|
||||
this.percentualId = percentualId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaComissaoPercentual)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaComissaoPercentual other = (PtovtaComissaoPercentual) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaComissaoPercentual[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
/*
|
||||
* 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.List;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_COMPOSICAO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaComposicao.findAll", query = "SELECT p FROM PtovtaComposicao p")})
|
||||
public class PtovtaComposicao implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "DESCRICAO")
|
||||
private String descricao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "TIPOCOMPOSICAO")
|
||||
private String tipocomposicao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
private int fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "composicaoId")
|
||||
private List<PtovtaComissaoComposicao> ptovtaComissaoComposicaoList;
|
||||
|
||||
public PtovtaComposicao() {
|
||||
}
|
||||
|
||||
public PtovtaComposicao(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaComposicao(Integer id, String descricao, String tipocomposicao, short activo, int fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.descricao = descricao;
|
||||
this.tipocomposicao = tipocomposicao;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDescricao() {
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricao) {
|
||||
this.descricao = descricao;
|
||||
}
|
||||
|
||||
public String getTipocomposicao() {
|
||||
return tipocomposicao;
|
||||
}
|
||||
|
||||
public void setTipocomposicao(String tipocomposicao) {
|
||||
this.tipocomposicao = tipocomposicao;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public int getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(int fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public List<PtovtaComissaoComposicao> getPtovtaComissaoComposicaoList() {
|
||||
return ptovtaComissaoComposicaoList;
|
||||
}
|
||||
|
||||
public void setPtovtaComissaoComposicaoList(List<PtovtaComissaoComposicao> ptovtaComissaoComposicaoList) {
|
||||
this.ptovtaComissaoComposicaoList = ptovtaComissaoComposicaoList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaComposicao)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaComposicao other = (PtovtaComposicao) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaComposicao[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,189 @@
|
|||
/*
|
||||
* 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 java.util.List;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_DIVERSOS")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaDiversos.findAll", query = "SELECT p FROM PtovtaDiversos p")})
|
||||
public class PtovtaDiversos implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "RESPON_ALUGUEL")
|
||||
private String responAluguel;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "RESPON_TELEFONE")
|
||||
private String responTelefone;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "RESPON_ENERGIA")
|
||||
private String responEnergia;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "POSICAO")
|
||||
private String posicao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "diversosId")
|
||||
private List<PtovtaDiversosInfo> ptovtaDiversosInfoList;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PuntoVenta puntoventaId;
|
||||
|
||||
public PtovtaDiversos() {
|
||||
}
|
||||
|
||||
public PtovtaDiversos(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaDiversos(Integer id, String responAluguel, String responTelefone, String responEnergia, String posicao, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.responAluguel = responAluguel;
|
||||
this.responTelefone = responTelefone;
|
||||
this.responEnergia = responEnergia;
|
||||
this.posicao = posicao;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getResponAluguel() {
|
||||
return responAluguel;
|
||||
}
|
||||
|
||||
public void setResponAluguel(String responAluguel) {
|
||||
this.responAluguel = responAluguel;
|
||||
}
|
||||
|
||||
public String getResponTelefone() {
|
||||
return responTelefone;
|
||||
}
|
||||
|
||||
public void setResponTelefone(String responTelefone) {
|
||||
this.responTelefone = responTelefone;
|
||||
}
|
||||
|
||||
public String getResponEnergia() {
|
||||
return responEnergia;
|
||||
}
|
||||
|
||||
public void setResponEnergia(String responEnergia) {
|
||||
this.responEnergia = responEnergia;
|
||||
}
|
||||
|
||||
public String getPosicao() {
|
||||
return posicao;
|
||||
}
|
||||
|
||||
public void setPosicao(String posicao) {
|
||||
this.posicao = posicao;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public List<PtovtaDiversosInfo> getPtovtaDiversosInfoList() {
|
||||
return ptovtaDiversosInfoList;
|
||||
}
|
||||
|
||||
public void setPtovtaDiversosInfoList(List<PtovtaDiversosInfo> ptovtaDiversosInfoList) {
|
||||
this.ptovtaDiversosInfoList = ptovtaDiversosInfoList;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(PuntoVenta puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaDiversos)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaDiversos other = (PtovtaDiversos) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaDiversos[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,95 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_DIVERSOS_INFO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaDiversosInfo.findAll", query = "SELECT p FROM PtovtaDiversosInfo p")})
|
||||
public class PtovtaDiversosInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@JoinColumn(name = "INFO_ID", referencedColumnName = "ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PtovtaInformacao infoId;
|
||||
@JoinColumn(name = "DIVERSOS_ID", referencedColumnName = "ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PtovtaDiversos diversosId;
|
||||
|
||||
public PtovtaDiversosInfo() {
|
||||
}
|
||||
|
||||
public PtovtaDiversosInfo(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaInformacao getInfoId() {
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(PtovtaInformacao infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public PtovtaDiversos getDiversosId() {
|
||||
return diversosId;
|
||||
}
|
||||
|
||||
public void setDiversosId(PtovtaDiversos diversosId) {
|
||||
this.diversosId = diversosId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaDiversosInfo)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaDiversosInfo other = (PtovtaDiversosInfo) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaDiversosInfo[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,176 @@
|
|||
/*
|
||||
* 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.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_ESTOQUE")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaEstoque.findAll", query = "SELECT p FROM PtovtaEstoque p")})
|
||||
public class PtovtaEstoque implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ESPECIE")
|
||||
private String especie;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FORM_CONT")
|
||||
private short formCont;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "QUANTIDADE")
|
||||
private long quantidade;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "LOTEFORM")
|
||||
private long loteform;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PuntoVenta puntoventaId;
|
||||
|
||||
public PtovtaEstoque() {
|
||||
}
|
||||
|
||||
public PtovtaEstoque(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaEstoque(Integer id, String especie, short formCont, long quantidade, long loteform, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.especie = especie;
|
||||
this.formCont = formCont;
|
||||
this.quantidade = quantidade;
|
||||
this.loteform = loteform;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getEspecie() {
|
||||
return especie;
|
||||
}
|
||||
|
||||
public void setEspecie(String especie) {
|
||||
this.especie = especie;
|
||||
}
|
||||
|
||||
public short getFormCont() {
|
||||
return formCont;
|
||||
}
|
||||
|
||||
public void setFormCont(short formCont) {
|
||||
this.formCont = formCont;
|
||||
}
|
||||
|
||||
public long getQuantidade() {
|
||||
return quantidade;
|
||||
}
|
||||
|
||||
public void setQuantidade(long quantidade) {
|
||||
this.quantidade = quantidade;
|
||||
}
|
||||
|
||||
public long getLoteform() {
|
||||
return loteform;
|
||||
}
|
||||
|
||||
public void setLoteform(long loteform) {
|
||||
this.loteform = loteform;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(PuntoVenta puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaEstoque)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaEstoque other = (PtovtaEstoque) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaEstoque[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,154 @@
|
|||
/*
|
||||
* 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.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_HORARIO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaHorario.findAll", query = "SELECT p FROM PtovtaHorario p")})
|
||||
public class PtovtaHorario implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "INICIO")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date inicio;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FIM")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fim;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private int activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PuntoVenta puntoventaId;
|
||||
|
||||
public PtovtaHorario() {
|
||||
}
|
||||
|
||||
public PtovtaHorario(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaHorario(Integer id, Date inicio, Date fim, int activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.inicio = inicio;
|
||||
this.fim = fim;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Date getInicio() {
|
||||
return inicio;
|
||||
}
|
||||
|
||||
public void setInicio(Date inicio) {
|
||||
this.inicio = inicio;
|
||||
}
|
||||
|
||||
public Date getFim() {
|
||||
return fim;
|
||||
}
|
||||
|
||||
public void setFim(Date fim) {
|
||||
this.fim = fim;
|
||||
}
|
||||
|
||||
public int getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(int activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(PuntoVenta puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaHorario)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaHorario other = (PtovtaHorario) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaHorario[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,140 @@
|
|||
/*
|
||||
* 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 java.util.List;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_INFORMACAO")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaInformacao.findAll", query = "SELECT p FROM PtovtaInformacao p")})
|
||||
public class PtovtaInformacao implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "DESCRICAO")
|
||||
private String descricao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "infoId")
|
||||
private List<PtovtaDiversosInfo> ptovtaDiversosInfoList;
|
||||
|
||||
public PtovtaInformacao() {
|
||||
}
|
||||
|
||||
public PtovtaInformacao(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaInformacao(Integer id, String descricao, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.descricao = descricao;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDescricao() {
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricao) {
|
||||
this.descricao = descricao;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public List<PtovtaDiversosInfo> getPtovtaDiversosInfoList() {
|
||||
return ptovtaDiversosInfoList;
|
||||
}
|
||||
|
||||
public void setPtovtaDiversosInfoList(List<PtovtaDiversosInfo> ptovtaDiversosInfoList) {
|
||||
this.ptovtaDiversosInfoList = ptovtaDiversosInfoList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaInformacao)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaInformacao other = (PtovtaInformacao) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaInformacao[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,165 @@
|
|||
/*
|
||||
* 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 java.util.List;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_PERCENTUAL")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaPercentual.findAll", query = "SELECT p FROM PtovtaPercentual p")})
|
||||
public class PtovtaPercentual implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "BAIXAESTACAO")
|
||||
private int baixaestacao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ALTAESTACAO")
|
||||
private int altaestacao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "IDTIPOPERCENT", referencedColumnName = "ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PtovtaTipoPercentual idtipopercent;
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "percentualId")
|
||||
private List<PtovtaComissaoPercentual> ptovtaComissaoPercentualList;
|
||||
|
||||
public PtovtaPercentual() {
|
||||
}
|
||||
|
||||
public PtovtaPercentual(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaPercentual(Integer id, int baixaestacao, int altaestacao, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.baixaestacao = baixaestacao;
|
||||
this.altaestacao = altaestacao;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getBaixaestacao() {
|
||||
return baixaestacao;
|
||||
}
|
||||
|
||||
public void setBaixaestacao(int baixaestacao) {
|
||||
this.baixaestacao = baixaestacao;
|
||||
}
|
||||
|
||||
public int getAltaestacao() {
|
||||
return altaestacao;
|
||||
}
|
||||
|
||||
public void setAltaestacao(int altaestacao) {
|
||||
this.altaestacao = altaestacao;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public PtovtaTipoPercentual getIdtipopercent() {
|
||||
return idtipopercent;
|
||||
}
|
||||
|
||||
public void setIdtipopercent(PtovtaTipoPercentual idtipopercent) {
|
||||
this.idtipopercent = idtipopercent;
|
||||
}
|
||||
|
||||
public List<PtovtaComissaoPercentual> getPtovtaComissaoPercentualList() {
|
||||
return ptovtaComissaoPercentualList;
|
||||
}
|
||||
|
||||
public void setPtovtaComissaoPercentualList(List<PtovtaComissaoPercentual> ptovtaComissaoPercentualList) {
|
||||
this.ptovtaComissaoPercentualList = ptovtaComissaoPercentualList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaPercentual)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaPercentual other = (PtovtaPercentual) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaPercentual[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,140 @@
|
|||
/*
|
||||
* 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 java.util.List;
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_TIPO_PERCENTUAL")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaTipoPercentual.findAll", query = "SELECT p FROM PtovtaTipoPercentual p")})
|
||||
public class PtovtaTipoPercentual implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "DESCRICAO")
|
||||
private String descricao;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "idtipopercent")
|
||||
private List<PtovtaPercentual> ptovtaPercentualList;
|
||||
|
||||
public PtovtaTipoPercentual() {
|
||||
}
|
||||
|
||||
public PtovtaTipoPercentual(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaTipoPercentual(Integer id, String descricao, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.descricao = descricao;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDescricao() {
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricao) {
|
||||
this.descricao = descricao;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public List<PtovtaPercentual> getPtovtaPercentualList() {
|
||||
return ptovtaPercentualList;
|
||||
}
|
||||
|
||||
public void setPtovtaPercentualList(List<PtovtaPercentual> ptovtaPercentualList) {
|
||||
this.ptovtaPercentualList = ptovtaPercentualList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaTipoPercentual)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaTipoPercentual other = (PtovtaTipoPercentual) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaTipoPercentual[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,188 @@
|
|||
/*
|
||||
* 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.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.Lob;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.NamedQueries;
|
||||
import javax.persistence.NamedQuery;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Rafael
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "PTOVTA_TITULAR")
|
||||
@NamedQueries({
|
||||
@NamedQuery(name = "PtovtaTitular.findAll", query = "SELECT p FROM PtovtaTitular p")})
|
||||
public class PtovtaTitular implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ID")
|
||||
private Integer id;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "NOME")
|
||||
private String nome;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "CPF")
|
||||
private String cpf;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "RG")
|
||||
private Serializable rg;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ORGAOEMISSOR")
|
||||
private String orgaoemissor;
|
||||
@Lob
|
||||
@Column(name = "IMAGEM")
|
||||
private Serializable imagem;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
private short activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "USUARIO_ID")
|
||||
private int usuarioId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
||||
@ManyToOne(optional = false)
|
||||
private PuntoVenta puntoventaId;
|
||||
|
||||
public PtovtaTitular() {
|
||||
}
|
||||
|
||||
public PtovtaTitular(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PtovtaTitular(Integer id, String nome, String cpf, Serializable rg, String orgaoemissor, short activo, Date fecmodif, int usuarioId) {
|
||||
this.id = id;
|
||||
this.nome = nome;
|
||||
this.cpf = cpf;
|
||||
this.rg = rg;
|
||||
this.orgaoemissor = orgaoemissor;
|
||||
this.activo = activo;
|
||||
this.fecmodif = fecmodif;
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getNome() {
|
||||
return nome;
|
||||
}
|
||||
|
||||
public void setNome(String nome) {
|
||||
this.nome = nome;
|
||||
}
|
||||
|
||||
public String getCpf() {
|
||||
return cpf;
|
||||
}
|
||||
|
||||
public void setCpf(String cpf) {
|
||||
this.cpf = cpf;
|
||||
}
|
||||
|
||||
public Serializable getRg() {
|
||||
return rg;
|
||||
}
|
||||
|
||||
public void setRg(Serializable rg) {
|
||||
this.rg = rg;
|
||||
}
|
||||
|
||||
public String getOrgaoemissor() {
|
||||
return orgaoemissor;
|
||||
}
|
||||
|
||||
public void setOrgaoemissor(String orgaoemissor) {
|
||||
this.orgaoemissor = orgaoemissor;
|
||||
}
|
||||
|
||||
public Serializable getImagem() {
|
||||
return imagem;
|
||||
}
|
||||
|
||||
public void setImagem(Serializable imagem) {
|
||||
this.imagem = imagem;
|
||||
}
|
||||
|
||||
public short getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(short activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public int getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(int usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public PuntoVenta getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(PuntoVenta puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
hash += (id != null ? id.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 PtovtaTitular)) {
|
||||
return false;
|
||||
}
|
||||
PtovtaTitular other = (PtovtaTitular) object;
|
||||
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.PtovtaTitular[ id=" + id + " ]";
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue