document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. package for.my.entities;
  2.  
  3. import java.io.Serializable;
  4. import java.math.BigDecimal;
  5. import java.util.List;
  6. import javax.faces.component.UIComponent;
  7. import javax.faces.context.FacesContext;
  8. import javax.faces.convert.Converter;
  9. import javax.faces.convert.FacesConverter;
  10. import javax.persistence.Basic;
  11. import javax.persistence.CascadeType;
  12. import javax.persistence.Column;
  13. import javax.persistence.Entity;
  14. import javax.persistence.Id;
  15. import javax.persistence.ManyToMany;
  16. import javax.persistence.SequenceGenerator;
  17. import javax.persistence.Table;
  18. import javax.validation.constraints.NotNull;
  19.  
  20. /**
  21.  *
  22.  * @author santiago.tapia
  23.  */
  24. @javax.persistence.Entity
  25. @Table(name = "ERROR")
  26. public class Error1 implements Serializable {
  27.     private static final long serialVersionUID = 1L;
  28.     @Id
  29.     @Basic(optional = false)
  30.     @NotNull
  31.     @Column(name = "ID")
  32.     private Integer id;
  33.     @Size(max = 50)
  34.     @Column(name = "DESC_ERROR_ANUL")
  35.     private String descErrorAnul;
  36.     @ManyToMany(mappedBy = "err")
  37.     private List<Anulacion> an;
  38.  
  39.     public Error1() {
  40.     }
  41.  
  42.     public Error1(Integer id) {
  43.         this.id = id;
  44.     }
  45.  
  46.     public Integer getId() {
  47.         return id;
  48.     }
  49.  
  50.     public void setId(Integer id) {
  51.         this.id = id;
  52.     }
  53.  
  54.     public String getDescErrorAnul() {
  55.         return descErrorAnul;
  56.     }
  57.  
  58.     public void setDescErrorAnul(String descErrorAnul) {
  59.         this.descErrorAnul = descErrorAnul;
  60.     }
  61.  
  62.     public List<Anulacion> getAn() {
  63.         return an;
  64.     }
  65.  
  66.     public void setAn(List<Anulacion> an) {
  67.         this.setAn(an);
  68.     }
  69.  
  70.     @Override
  71.     public int hashCode() {
  72.         int hash = 0;
  73.         hash += (id != null ? id.hashCode() : 0);
  74.         return hash;
  75.     }
  76.  
  77.     @Override
  78.     public boolean equals(Object object) {
  79.         // TODO: Warning - this method won\'t work in the case the id fields are not set
  80.         if (!(object instanceof Error1)) {
  81.             return false;
  82.         }
  83.         Error1 other = (Error1) object;
  84.         if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
  85.             return false;
  86.         }
  87.         return true;
  88.     }
  89.  
  90.     @Override
  91.     public String toString() {
  92.         return descErrorAnul;
  93.     }
  94. }
');