156 lines
3.7 KiB
Java
156 lines
3.7 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 = "GP_PRICING_FORMAPAGO_SEQ", sequenceName = "GP_PRICING_FORMAPAGO_SEQ", allocationSize = 1)
|
|
@Table(name = "GP_PRICING_FORMAPAGO")
|
|
public class GP_PricingFormapago implements Serializable, Cloneable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "GP_PRICING_FORMAPAGO_SEQ")
|
|
@Column(name = "PRICINGFORMAPAGO_ID")
|
|
private Integer pricingformapagoId;
|
|
|
|
@Column(name = "INDEXCEPCION")
|
|
private Boolean indexcepcion;
|
|
|
|
@Column(name = "ACTIVO")
|
|
private Integer activo;
|
|
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
|
|
@JoinColumn(name = "PRICING_ID", referencedColumnName = "PRICING_ID")
|
|
@ManyToOne
|
|
private GP_Pricing pricing;
|
|
|
|
@JoinColumn(name = "FORMAPAGO_ID", referencedColumnName = "FORMAPAGO_ID")
|
|
@ManyToOne
|
|
private FormaPago formaPago;
|
|
|
|
public GP_PricingFormapago() {
|
|
}
|
|
|
|
public GP_PricingFormapago(Integer pricingformapagoId) {
|
|
this.pricingformapagoId = pricingformapagoId;
|
|
}
|
|
|
|
public GP_PricingFormapago(Integer pricingformapagoId, Boolean indexcepcion, Integer activo, Date fecmodif, Integer usuarioId, GP_Pricing pricing, FormaPago formaPago) {
|
|
this.pricingformapagoId = pricingformapagoId;
|
|
this.indexcepcion = indexcepcion;
|
|
this.activo = activo;
|
|
this.fecmodif = fecmodif;
|
|
this.usuarioId = usuarioId;
|
|
this.pricing = pricing;
|
|
this.formaPago = formaPago;
|
|
}
|
|
|
|
public Integer getPricingformapagoId() {
|
|
return pricingformapagoId;
|
|
}
|
|
|
|
public void setPricingformapagoId(Integer pricingformapagoId) {
|
|
this.pricingformapagoId = pricingformapagoId;
|
|
}
|
|
|
|
public Boolean getIndexcepcion() {
|
|
return indexcepcion;
|
|
}
|
|
|
|
public void setIndexcepcion(Boolean indexcepcion) {
|
|
this.indexcepcion = indexcepcion;
|
|
}
|
|
|
|
public Integer getActivo() {
|
|
return activo;
|
|
}
|
|
|
|
public void setActivo(Integer 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 GP_Pricing getPricing() {
|
|
return pricing;
|
|
}
|
|
|
|
public void setPricing(GP_Pricing pricing) {
|
|
this.pricing = pricing;
|
|
}
|
|
|
|
public FormaPago getFormaPago() {
|
|
return formaPago;
|
|
}
|
|
|
|
public void setFormaPago(FormaPago formaPago) {
|
|
this.formaPago = formaPago;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int hash = 0;
|
|
hash += (pricingformapagoId != null ? pricingformapagoId.hashCode() : 0);
|
|
return hash;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object object) {
|
|
if (!(object instanceof GP_PricingFormapago)) {
|
|
return false;
|
|
}
|
|
GP_PricingFormapago other = (GP_PricingFormapago) object;
|
|
if ((this.pricingformapagoId == null && other.pricingformapagoId != null) || (this.pricingformapagoId != null && !this.pricingformapagoId.equals(other.pricingformapagoId))) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
return " [formaPago=" + formaPago.toString() + "]";
|
|
}
|
|
|
|
@Override
|
|
protected Object clone() throws CloneNotSupportedException {
|
|
return super.clone();
|
|
}
|
|
}
|