rodrigo 2012-08-10 15:05:09 +00:00
parent 45b9d70dd5
commit 4353fdb749
1 changed files with 112 additions and 101 deletions

View File

@ -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;
}