From 088ea0e8a526280d056324b818e86a99036eb8dc Mon Sep 17 00:00:00 2001 From: rodrigo Date: Wed, 31 Jul 2013 23:13:46 +0000 Subject: [PATCH] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@29638 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/entidad/Moneda.java | 195 +++++++++--------- 1 file changed, 98 insertions(+), 97 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/entidad/Moneda.java b/src/com/rjconsultores/ventaboletos/entidad/Moneda.java index 0231acef8..f46e597e3 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/Moneda.java +++ b/src/com/rjconsultores/ventaboletos/entidad/Moneda.java @@ -20,7 +20,7 @@ import javax.persistence.TemporalType; import javax.persistence.SequenceGenerator; /** - * + * * @author Rafius */ @Entity @@ -28,121 +28,122 @@ import javax.persistence.SequenceGenerator; @Table(name = "MONEDA") public class Moneda implements Serializable { - @OneToMany(mappedBy = "moneda") - private List tarifaHistList; - private static final long serialVersionUID = 1L; - @Id - @Basic(optional = false) - @GeneratedValue(strategy = GenerationType.AUTO, generator = "MONEDA_SEQ") - @Column(name = "MONEDA_ID") - private Integer monedaId; - @Column(name = "DESCMONEDA") - private String descmoneda; - @Column(name = "ACTIVO") - private Boolean activo; - @Column(name = "FECMODIF") - @Temporal(TemporalType.TIMESTAMP) - private Date fecmodif; - @Column(name = "USUARIO_ID") - private Integer usuarioId; - @OneToMany(mappedBy = "moneda") - private List puntoVentaList; - @Column(name = "EQUIVALENCIA_ID") - private String equivalenciaId; + public final static Integer MONEDA_REAL_ID = 1; + @OneToMany(mappedBy = "moneda") + private List tarifaHistList; + private static final long serialVersionUID = 1L; + @Id + @Basic(optional = false) + @GeneratedValue(strategy = GenerationType.AUTO, generator = "MONEDA_SEQ") + @Column(name = "MONEDA_ID") + private Integer monedaId; + @Column(name = "DESCMONEDA") + private String descmoneda; + @Column(name = "ACTIVO") + private Boolean activo; + @Column(name = "FECMODIF") + @Temporal(TemporalType.TIMESTAMP) + private Date fecmodif; + @Column(name = "USUARIO_ID") + private Integer usuarioId; + @OneToMany(mappedBy = "moneda") + private List puntoVentaList; + @Column(name = "EQUIVALENCIA_ID") + private String equivalenciaId; - public Moneda() { - } + public Moneda() { + } - public Moneda(Integer monedaId) { - this.monedaId = monedaId; - } + public Moneda(Integer monedaId) { + this.monedaId = monedaId; + } - public Integer getMonedaId() { - return monedaId; - } + public Integer getMonedaId() { + return monedaId; + } - public void setMonedaId(Integer monedaId) { - this.monedaId = monedaId; - } + public void setMonedaId(Integer monedaId) { + this.monedaId = monedaId; + } - public String getDescmoneda() { - return descmoneda; - } + public String getDescmoneda() { + return descmoneda; + } - public void setDescmoneda(String descmoneda) { - this.descmoneda = descmoneda; - } + public void setDescmoneda(String descmoneda) { + this.descmoneda = descmoneda; + } - 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 List getPuntoVentaList() { - return puntoVentaList; - } + public List getPuntoVentaList() { + return puntoVentaList; + } - public void setPuntoVentaList(List puntoVentaList) { - this.puntoVentaList = puntoVentaList; - } + public void setPuntoVentaList(List puntoVentaList) { + this.puntoVentaList = puntoVentaList; + } - public String getEquivalenciaId() { - return equivalenciaId; - } + public String getEquivalenciaId() { + return equivalenciaId; + } - public void setEquivalenciaId(String equivalenciaId) { - this.equivalenciaId = equivalenciaId; - } + public void setEquivalenciaId(String equivalenciaId) { + this.equivalenciaId = equivalenciaId; + } - @Override - public int hashCode() { - int hash = 0; - hash += (monedaId != null ? monedaId.hashCode() : 0); - return hash; - } + @Override + public int hashCode() { + int hash = 0; + hash += (monedaId != null ? monedaId.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 Moneda)) { - return false; - } - Moneda other = (Moneda) object; - if ((this.monedaId == null && other.monedaId != null) || (this.monedaId != null && !this.monedaId.equals(other.monedaId))) { - return false; - } - return true; - } + @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 Moneda)) { + return false; + } + Moneda other = (Moneda) object; + if ((this.monedaId == null && other.monedaId != null) || (this.monedaId != null && !this.monedaId.equals(other.monedaId))) { + return false; + } + return true; + } - @Override - public String toString() { - return this.getDescmoneda(); - } + @Override + public String toString() { + return this.getDescmoneda(); + } - public List getTarifaHistList() { - return tarifaHistList; - } + public List getTarifaHistList() { + return tarifaHistList; + } - public void setTarifaHistList(List tarifaHistList) { - this.tarifaHistList = tarifaHistList; - } + public void setTarifaHistList(List tarifaHistList) { + this.tarifaHistList = tarifaHistList; + } }