git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@29638 d1611594-4594-4d17-8e1d-87c2c4800839
parent
1ca9b30890
commit
088ea0e8a5
|
@ -28,121 +28,122 @@ import javax.persistence.SequenceGenerator;
|
||||||
@Table(name = "MONEDA")
|
@Table(name = "MONEDA")
|
||||||
public class Moneda implements Serializable {
|
public class Moneda implements Serializable {
|
||||||
|
|
||||||
@OneToMany(mappedBy = "moneda")
|
public final static Integer MONEDA_REAL_ID = 1;
|
||||||
private List<TarifaHist> tarifaHistList;
|
@OneToMany(mappedBy = "moneda")
|
||||||
private static final long serialVersionUID = 1L;
|
private List<TarifaHist> tarifaHistList;
|
||||||
@Id
|
private static final long serialVersionUID = 1L;
|
||||||
@Basic(optional = false)
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "MONEDA_SEQ")
|
@Basic(optional = false)
|
||||||
@Column(name = "MONEDA_ID")
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "MONEDA_SEQ")
|
||||||
private Integer monedaId;
|
@Column(name = "MONEDA_ID")
|
||||||
@Column(name = "DESCMONEDA")
|
private Integer monedaId;
|
||||||
private String descmoneda;
|
@Column(name = "DESCMONEDA")
|
||||||
@Column(name = "ACTIVO")
|
private String descmoneda;
|
||||||
private Boolean activo;
|
@Column(name = "ACTIVO")
|
||||||
@Column(name = "FECMODIF")
|
private Boolean activo;
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
@Column(name = "FECMODIF")
|
||||||
private Date fecmodif;
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
@Column(name = "USUARIO_ID")
|
private Date fecmodif;
|
||||||
private Integer usuarioId;
|
@Column(name = "USUARIO_ID")
|
||||||
@OneToMany(mappedBy = "moneda")
|
private Integer usuarioId;
|
||||||
private List<PuntoVenta> puntoVentaList;
|
@OneToMany(mappedBy = "moneda")
|
||||||
@Column(name = "EQUIVALENCIA_ID")
|
private List<PuntoVenta> puntoVentaList;
|
||||||
private String equivalenciaId;
|
@Column(name = "EQUIVALENCIA_ID")
|
||||||
|
private String equivalenciaId;
|
||||||
|
|
||||||
public Moneda() {
|
public Moneda() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Moneda(Integer monedaId) {
|
public Moneda(Integer monedaId) {
|
||||||
this.monedaId = monedaId;
|
this.monedaId = monedaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getMonedaId() {
|
public Integer getMonedaId() {
|
||||||
return monedaId;
|
return monedaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMonedaId(Integer monedaId) {
|
public void setMonedaId(Integer monedaId) {
|
||||||
this.monedaId = monedaId;
|
this.monedaId = monedaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescmoneda() {
|
public String getDescmoneda() {
|
||||||
return descmoneda;
|
return descmoneda;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDescmoneda(String descmoneda) {
|
public void setDescmoneda(String descmoneda) {
|
||||||
this.descmoneda = descmoneda;
|
this.descmoneda = descmoneda;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getActivo() {
|
public Boolean getActivo() {
|
||||||
return activo;
|
return activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setActivo(Boolean activo) {
|
public void setActivo(Boolean activo) {
|
||||||
this.activo = activo;
|
this.activo = activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getFecmodif() {
|
public Date getFecmodif() {
|
||||||
return fecmodif;
|
return fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFecmodif(Date fecmodif) {
|
public void setFecmodif(Date fecmodif) {
|
||||||
this.fecmodif = fecmodif;
|
this.fecmodif = fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getUsuarioId() {
|
public Integer getUsuarioId() {
|
||||||
return usuarioId;
|
return usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsuarioId(Integer usuarioId) {
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
this.usuarioId = usuarioId;
|
this.usuarioId = usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<PuntoVenta> getPuntoVentaList() {
|
public List<PuntoVenta> getPuntoVentaList() {
|
||||||
return puntoVentaList;
|
return puntoVentaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPuntoVentaList(List<PuntoVenta> puntoVentaList) {
|
public void setPuntoVentaList(List<PuntoVenta> puntoVentaList) {
|
||||||
this.puntoVentaList = puntoVentaList;
|
this.puntoVentaList = puntoVentaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEquivalenciaId() {
|
public String getEquivalenciaId() {
|
||||||
return equivalenciaId;
|
return equivalenciaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEquivalenciaId(String equivalenciaId) {
|
public void setEquivalenciaId(String equivalenciaId) {
|
||||||
this.equivalenciaId = equivalenciaId;
|
this.equivalenciaId = equivalenciaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int hash = 0;
|
int hash = 0;
|
||||||
hash += (monedaId != null ? monedaId.hashCode() : 0);
|
hash += (monedaId != null ? monedaId.hashCode() : 0);
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object object) {
|
public boolean equals(Object object) {
|
||||||
// TODO: Warning - this method won't work in the case the id fields are not set
|
// TODO: Warning - this method won't work in the case the id fields are not set
|
||||||
if (!(object instanceof Moneda)) {
|
if (!(object instanceof Moneda)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Moneda other = (Moneda) object;
|
Moneda other = (Moneda) object;
|
||||||
if ((this.monedaId == null && other.monedaId != null) || (this.monedaId != null && !this.monedaId.equals(other.monedaId))) {
|
if ((this.monedaId == null && other.monedaId != null) || (this.monedaId != null && !this.monedaId.equals(other.monedaId))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return this.getDescmoneda();
|
return this.getDescmoneda();
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<TarifaHist> getTarifaHistList() {
|
public List<TarifaHist> getTarifaHistList() {
|
||||||
return tarifaHistList;
|
return tarifaHistList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTarifaHistList(List<TarifaHist> tarifaHistList) {
|
public void setTarifaHistList(List<TarifaHist> tarifaHistList) {
|
||||||
this.tarifaHistList = tarifaHistList;
|
this.tarifaHistList = tarifaHistList;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue