git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@23152 d1611594-4594-4d17-8e1d-87c2c4800839
parent
d38115f948
commit
ff42d2b4fb
|
@ -25,7 +25,7 @@ import javax.persistence.TemporalType;
|
|||
import javax.persistence.SequenceGenerator;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
@Entity
|
||||
|
@ -33,164 +33,174 @@ import javax.persistence.SequenceGenerator;
|
|||
@Table(name = "CATEGORIA_DESCUENTO")
|
||||
public class CategoriaDescuento implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CATEGORIA_DESCUENTO_SEQ")
|
||||
@Column(name = "CATEGORIADESCUENTO_ID")
|
||||
private Integer categoriadescuentoId;
|
||||
@Column(name = "CANTAUTORIZADA")
|
||||
private Integer cantautorizada;
|
||||
@Column(name = "DESCUENTOPORC")
|
||||
private BigDecimal descuentoporc;
|
||||
@Column(name = "DESCUENTOIMPORTE")
|
||||
private BigDecimal descuentoimporte;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "CATEGORIACTRL_ID", referencedColumnName = "CATEGORIACTRL_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private CategoriaCtrl categoriaCtrl;
|
||||
@JoinColumn(name = "CATEGORIA_ID", referencedColumnName = "CATEGORIA_ID")
|
||||
@ManyToOne
|
||||
private Categoria categoria;
|
||||
@OneToMany(mappedBy = "categoriaDescuento", cascade = CascadeType.ALL)
|
||||
private List<CategoriaPeriodo> categoriaPeriodoList;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "CATEGORIA_DESCUENTO_SEQ")
|
||||
@Column(name = "CATEGORIADESCUENTO_ID")
|
||||
private Integer categoriadescuentoId;
|
||||
@Column(name = "CANTAUTORIZADA")
|
||||
private Integer cantautorizada;
|
||||
@Column(name = "DESCUENTOPORC")
|
||||
private BigDecimal descuentoporc;
|
||||
@Column(name = "DESCUENTOIMPORTE")
|
||||
private BigDecimal descuentoimporte;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@JoinColumn(name = "CATEGORIACTRL_ID", referencedColumnName = "CATEGORIACTRL_ID")
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
private CategoriaCtrl categoriaCtrl;
|
||||
@JoinColumn(name = "CATEGORIA_ID", referencedColumnName = "CATEGORIA_ID")
|
||||
@ManyToOne
|
||||
private Categoria categoria;
|
||||
@OneToMany(mappedBy = "categoriaDescuento", cascade = CascadeType.ALL)
|
||||
private List<CategoriaPeriodo> categoriaPeriodoList;
|
||||
@Column(name = "INDIMPRIMEBOLETO")
|
||||
private Boolean indImprimeBoleto;
|
||||
|
||||
public CategoriaDescuento() {
|
||||
}
|
||||
public CategoriaDescuento() {
|
||||
}
|
||||
|
||||
public CategoriaDescuento(Integer categoriadescuentoId) {
|
||||
this.categoriadescuentoId = categoriadescuentoId;
|
||||
}
|
||||
public CategoriaDescuento(Integer categoriadescuentoId) {
|
||||
this.categoriadescuentoId = categoriadescuentoId;
|
||||
}
|
||||
|
||||
public CategoriaDescuento(Integer categoriadescuentoId, Date fecmodif) {
|
||||
this.categoriadescuentoId = categoriadescuentoId;
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public CategoriaDescuento(Integer categoriadescuentoId, Date fecmodif) {
|
||||
this.categoriadescuentoId = categoriadescuentoId;
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getCategoriadescuentoId() {
|
||||
return categoriadescuentoId;
|
||||
}
|
||||
public Integer getCategoriadescuentoId() {
|
||||
return categoriadescuentoId;
|
||||
}
|
||||
|
||||
public void setCategoriadescuentoId(Integer categoriadescuentoId) {
|
||||
this.categoriadescuentoId = categoriadescuentoId;
|
||||
}
|
||||
public void setCategoriadescuentoId(Integer categoriadescuentoId) {
|
||||
this.categoriadescuentoId = categoriadescuentoId;
|
||||
}
|
||||
|
||||
public Integer getCantautorizada() {
|
||||
return cantautorizada;
|
||||
}
|
||||
public Integer getCantautorizada() {
|
||||
return cantautorizada;
|
||||
}
|
||||
|
||||
public void setCantautorizada(Integer cantautorizada) {
|
||||
this.cantautorizada = cantautorizada;
|
||||
}
|
||||
public void setCantautorizada(Integer cantautorizada) {
|
||||
this.cantautorizada = cantautorizada;
|
||||
}
|
||||
|
||||
public BigDecimal getDescuentoporc() {
|
||||
return descuentoporc;
|
||||
}
|
||||
public BigDecimal getDescuentoporc() {
|
||||
return descuentoporc;
|
||||
}
|
||||
|
||||
public void setDescuentoporc(BigDecimal descuentoporc) {
|
||||
this.descuentoporc = descuentoporc;
|
||||
}
|
||||
public void setDescuentoporc(BigDecimal descuentoporc) {
|
||||
this.descuentoporc = descuentoporc;
|
||||
}
|
||||
|
||||
public BigDecimal getDescuentoimporte() {
|
||||
return descuentoimporte;
|
||||
}
|
||||
public BigDecimal getDescuentoimporte() {
|
||||
return descuentoimporte;
|
||||
}
|
||||
|
||||
public void setDescuentoimporte(BigDecimal descuentoimporte) {
|
||||
this.descuentoimporte = descuentoimporte;
|
||||
}
|
||||
public void setDescuentoimporte(BigDecimal descuentoimporte) {
|
||||
this.descuentoimporte = descuentoimporte;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public CategoriaCtrl getCategoriaCtrl() {
|
||||
return categoriaCtrl;
|
||||
}
|
||||
public CategoriaCtrl getCategoriaCtrl() {
|
||||
return categoriaCtrl;
|
||||
}
|
||||
|
||||
public void setCategoriaCtrl(CategoriaCtrl categoriaCtrl) {
|
||||
this.categoriaCtrl = categoriaCtrl;
|
||||
}
|
||||
public void setCategoriaCtrl(CategoriaCtrl categoriaCtrl) {
|
||||
this.categoriaCtrl = categoriaCtrl;
|
||||
}
|
||||
|
||||
public Categoria getCategoria() {
|
||||
return categoria;
|
||||
}
|
||||
public Categoria getCategoria() {
|
||||
return categoria;
|
||||
}
|
||||
|
||||
public void setCategoria(Categoria categoria) {
|
||||
this.categoria = categoria;
|
||||
}
|
||||
public void setCategoria(Categoria categoria) {
|
||||
this.categoria = categoria;
|
||||
}
|
||||
|
||||
public List<CategoriaPeriodo> getCategoriaPeriodoList() {
|
||||
List<CategoriaPeriodo> tmp = new ArrayList<CategoriaPeriodo>();
|
||||
if (categoriaPeriodoList != null) {
|
||||
for (CategoriaPeriodo cp : this.categoriaPeriodoList) {
|
||||
if (cp.getActivo()) {
|
||||
tmp.add(cp);
|
||||
}
|
||||
}
|
||||
}
|
||||
public List<CategoriaPeriodo> getCategoriaPeriodoList() {
|
||||
List<CategoriaPeriodo> tmp = new ArrayList<CategoriaPeriodo>();
|
||||
if (categoriaPeriodoList != null) {
|
||||
for (CategoriaPeriodo cp : this.categoriaPeriodoList) {
|
||||
if (cp.getActivo()) {
|
||||
tmp.add(cp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public void setCategoriaPeriodoList(List<CategoriaPeriodo> categoriaPeriodoList) {
|
||||
this.categoriaPeriodoList = categoriaPeriodoList;
|
||||
}
|
||||
public void setCategoriaPeriodoList(List<CategoriaPeriodo> categoriaPeriodoList) {
|
||||
this.categoriaPeriodoList = categoriaPeriodoList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
final CategoriaDescuento other = (CategoriaDescuento) obj;
|
||||
if (this.categoriaCtrl != other.categoriaCtrl && (this.categoriaCtrl == null || !this.categoriaCtrl.equals(other.categoriaCtrl))) {
|
||||
return false;
|
||||
}
|
||||
if (this.categoria != other.categoria && (this.categoria == null || !this.categoria.equals(other.categoria))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public Boolean getIndImprimeBoleto() {
|
||||
return indImprimeBoleto;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 7;
|
||||
hash = 53 * hash + (this.categoriaCtrl != null ? this.categoriaCtrl.hashCode() : 0);
|
||||
hash = 53 * hash + (this.categoria != null ? this.categoria.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
public void setIndImprimeBoleto(Boolean indImprimeBoleto) {
|
||||
this.indImprimeBoleto = indImprimeBoleto;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.CategoriaDescuento[categoriadescuentoId=" + categoriadescuentoId + "]";
|
||||
}
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
final CategoriaDescuento other = (CategoriaDescuento) obj;
|
||||
if (this.categoriaCtrl != other.categoriaCtrl && (this.categoriaCtrl == null || !this.categoriaCtrl.equals(other.categoriaCtrl))) {
|
||||
return false;
|
||||
}
|
||||
if (this.categoria != other.categoria && (this.categoria == null || !this.categoria.equals(other.categoria))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 7;
|
||||
hash = 53 * hash + (this.categoriaCtrl != null ? this.categoriaCtrl.hashCode() : 0);
|
||||
hash = 53 * hash + (this.categoria != null ? this.categoria.hashCode() : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.CategoriaDescuento[categoriadescuentoId=" + categoriadescuentoId + "]";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue