Subversion Repositories SmartDukaan

Rev

Rev 29606 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

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

import java.io.Serializable;

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

@Entity
@Table(name="fofo.scheme_item", schema = "fofo")
public class SchemeItem implements Serializable{

        private static final long serialVersionUID = 1L;

        @Id
        @Column(name = "scheme_id")
        private int schemeId;
        
        @Id
        @Column(name = "item_id")
        private int itemId;
        
        public int getSchemeId() {
                return schemeId;
        }
        
        public void setSchemeId(int schemeId) {
                this.schemeId = schemeId;
        }
        
        public int getItemId() {
                return itemId;
        }
        
        public void setItemId(int itemId) {
                this.itemId = itemId;
        }

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

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                SchemeItem other = (SchemeItem) obj;
                if (itemId != other.itemId)
                        return false;
                if (schemeId != other.schemeId)
                        return false;
                return true;
        }

        @Override
        public String toString() {
                return "SchemeItem [schemeId=" + schemeId + ", itemId=" + itemId + "]";
        }
        
        
}