001package gudusoft.gsqlparser.dlineage.dataflow.model.xml;
002
003import javax.xml.bind.annotation.XmlAttribute;
004import javax.xml.bind.annotation.XmlType;
005
006@XmlType(propOrder = { "id", "name" })
007public class candidateTable {
008        
009        private String id;
010
011        private String name;
012
013        @XmlAttribute(required = false)
014        public String getId() {
015                return id;
016        }
017
018        public void setId(String id) {
019                this.id = id;
020        }
021
022        @XmlAttribute(required = false)
023        public String getName() {
024                return name;
025        }
026
027        public void setName(String name) {
028                this.name = name;
029        }
030
031        @Override
032        public int hashCode() {
033                final int prime = 31;
034                int result = 1;
035                result = prime * result + ((id == null) ? 0 : id.hashCode());
036                result = prime * result + ((name == null) ? 0 : name.hashCode());
037                return result;
038        }
039
040        @Override
041        public boolean equals(Object obj) {
042                if (this == obj)
043                        return true;
044                if (obj == null)
045                        return false;
046                if (getClass() != obj.getClass())
047                        return false;
048                candidateTable other = (candidateTable) obj;
049                if (id == null) {
050                        if (other.id != null)
051                                return false;
052                } else if (!id.equals(other.id))
053                        return false;
054                if (name == null) {
055                        if (other.name != null)
056                                return false;
057                } else if (!name.equals(other.name))
058                        return false;
059                return true;
060        }
061        
062}