Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

public class PartnerCommittment {

        private int fofoId;
        private int id;

        public PartnerCommittment(int fofoId, int id) {
                super();
                this.fofoId = fofoId;
                this.id = id;
        }

        public int getId() {
                return id;
        }

        public void setId(int id) {
                this.id = id;
        }

        public int getFofoId() {
                return fofoId;
        }

        public void setFofoId(int fofoId) {
                this.fofoId = fofoId;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + fofoId;
                result = prime * result + id;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                PartnerCommittment other = (PartnerCommittment) obj;
                if (fofoId != other.fofoId)
                        return false;
                if (id != other.id)
                        return false;
                return true;
        }

        @Override
        public String toString() {
                return "PartnerCommittment [fofoId=" + fofoId + ", id=" + id + "]";
        }

}