Subversion Repositories SmartDukaan

Rev

Rev 24417 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.cs;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * This class basically contains api details
 * 
 * @author Govind
 *
 */

@Entity
@Table(name="cs.partner_region", schema = "cs")
public class PartnerRegion implements Serializable{
        
        private static final long serialVersionUID = 1L;
        
        
        @Id
        @Column(name="region_id")
        private int regionId;
        
        @Id
        @Column(name="fofo_id")
        private int fofoId;

        public int getRegionId() {
                return regionId;
        }

        public void setRegionId(int regionId) {
                this.regionId = regionId;
        }

        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 + regionId;
                return result;
        }

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

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