Subversion Repositories SmartDukaan

Rev

Rev 22653 | Rev 22859 | 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.user;

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

/**
 * This class basically contains private deal user.
 * 
 * @author ashikali
 *
 */
@Entity
@Table(name="user.privatedealuser", schema = "user")
public class PrivateDealUser {
        
        @Id
        @Column(name="id", unique=true, updatable=false)
        private int id;
        
        @Column(name="counter_id")
        private Integer counterId;
        
        public boolean isFofo() {
                return isFofo;
        }
        public void setFofo(boolean isFofo) {
                this.isFofo = isFofo;
        }
        @Column(name = "isActive")
        private boolean active;
        
        @Column(name = "isFofo")
        private boolean isFofo;
        
        @Column(name = "bulkShipmentAmountLimit")
        private float bulkShipmentAmountLimit;
        
        public int getId() {
                return id;
        }
        public void setId(int id) {
                this.id = id;
        }
        public Integer getCounterId() {
                return counterId;
        }
        public void setCounterId(Integer counterId) {
                this.counterId = counterId;
        }
        
        public boolean isActive() {
                return active;
        }
        public void setActive(boolean active) {
                this.active = active;
        }
        public float getBulkShipmentAmountLimit() {
                return bulkShipmentAmountLimit;
        }
        public void setBulkShipmentAmountLimit(float bulkShipmentAmountLimit) {
                this.bulkShipmentAmountLimit = bulkShipmentAmountLimit;
        }
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                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;
                PrivateDealUser other = (PrivateDealUser) obj;
                if (id != other.id)
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "PrivateDealUser [id=" + id + ", counterId=" + counterId + ", active=" + active
                                + ", bulkShipmentAmountLimit=" + bulkShipmentAmountLimit + "]";
        }
        
        
}