git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@20345 d1611594-4594-4d17-8e1d-87c2c4800839
parent
45b9d70dd5
commit
4353fdb749
|
@ -5,8 +5,10 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
|
@ -16,10 +18,10 @@ import javax.persistence.Id;
|
|||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -54,6 +56,8 @@ public class Estado implements Serializable {
|
|||
private String equivalenciaId;
|
||||
@OneToMany(mappedBy = "estado")
|
||||
private List<Ciudad> ciudadList;
|
||||
@Column(name = "ICMS")
|
||||
private BigDecimal icms;
|
||||
|
||||
public Estado() {
|
||||
}
|
||||
|
@ -134,6 +138,14 @@ public class Estado implements Serializable {
|
|||
this.cveestado = cveestado;
|
||||
}
|
||||
|
||||
public BigDecimal getIcms() {
|
||||
return icms;
|
||||
}
|
||||
|
||||
public void setIcms(BigDecimal icms) {
|
||||
this.icms = icms;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
|
@ -143,7 +155,6 @@ public class Estado implements Serializable {
|
|||
|
||||
@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 Estado)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue