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")
|
||||
public class Moneda implements Serializable {
|
||||
|
||||
@OneToMany(mappedBy = "moneda")
|
||||
private List<TarifaHist> 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<PuntoVenta> puntoVentaList;
|
||||
@Column(name = "EQUIVALENCIA_ID")
|
||||
private String equivalenciaId;
|
||||
public final static Integer MONEDA_REAL_ID = 1;
|
||||
@OneToMany(mappedBy = "moneda")
|
||||
private List<TarifaHist> 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<PuntoVenta> 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<PuntoVenta> getPuntoVentaList() {
|
||||
return puntoVentaList;
|
||||
}
|
||||
public List<PuntoVenta> getPuntoVentaList() {
|
||||
return puntoVentaList;
|
||||
}
|
||||
|
||||
public void setPuntoVentaList(List<PuntoVenta> puntoVentaList) {
|
||||
this.puntoVentaList = puntoVentaList;
|
||||
}
|
||||
public void setPuntoVentaList(List<PuntoVenta> 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<TarifaHist> getTarifaHistList() {
|
||||
return tarifaHistList;
|
||||
}
|
||||
public List<TarifaHist> getTarifaHistList() {
|
||||
return tarifaHistList;
|
||||
}
|
||||
|
||||
public void setTarifaHistList(List<TarifaHist> tarifaHistList) {
|
||||
this.tarifaHistList = tarifaHistList;
|
||||
}
|
||||
public void setTarifaHistList(List<TarifaHist> tarifaHistList) {
|
||||
this.tarifaHistList = tarifaHistList;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue