Subversion Repositories SmartDukaan

Rev

Rev 22204 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.time.LocalDateTime;

public class TagListingModel {
        private int tagId;
        private String label;
        private int itemId;
        private float sellingPrice;
        private float mop;
        private float supportPrice;
        private float maxDiscountPrice;
        private LocalDateTime startDate;
        public int getTagId() {
                return tagId;
        }
        public void setTagId(int tagId) {
                this.tagId = tagId;
        }
        public String getLabel() {
                return label;
        }
        public void setLabel(String label) {
                this.label = label;
        }
        public int getItemId() {
                return itemId;
        }
        public void setItemId(int itemId) {
                this.itemId = itemId;
        }
        public float getSellingPrice() {
                return sellingPrice;
        }
        public void setSellingPrice(float sellingPrice) {
                this.sellingPrice = sellingPrice;
        }
        public float getSupportPrice() {
                return supportPrice;
        }
        public void setSupportPrice(float supportPrice) {
                this.supportPrice = supportPrice;
        }
        public LocalDateTime getStartDate() {
                return startDate;
        }
        public void setStartDate(LocalDateTime startDate) {
                this.startDate = startDate;
        }
        
        
        
        
        public float getMaxDiscountPrice() {
                return maxDiscountPrice;
        }
        public void setMaxDiscountPrice(float maxDiscountPrice) {
                this.maxDiscountPrice = maxDiscountPrice;
        }
        public float getMop() {
                return mop;
        }
        public void setMop(float mop) {
                this.mop = mop;
        }
        @Override
        public String toString() {
                return "TagListingModel [tagId=" + tagId + ", label=" + label + ", itemId=" + itemId + ", sellingPrice="
                                + sellingPrice + ", mop=" + mop + ", supportPrice=" + supportPrice + ", startDate=" + startDate + "]";
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + itemId;
                result = prime * result + ((label == null) ? 0 : label.hashCode());
                result = prime * result + Float.floatToIntBits(mop);
                result = prime * result + Float.floatToIntBits(sellingPrice);
                result = prime * result + ((startDate == null) ? 0 : startDate.hashCode());
                result = prime * result + Float.floatToIntBits(supportPrice);
                result = prime * result + tagId;
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                TagListingModel other = (TagListingModel) obj;
                if (itemId != other.itemId)
                        return false;
                if (label == null) {
                        if (other.label != null)
                                return false;
                } else if (!label.equals(other.label))
                        return false;
                if (Float.floatToIntBits(mop) != Float.floatToIntBits(other.mop))
                        return false;
                if (Float.floatToIntBits(sellingPrice) != Float.floatToIntBits(other.sellingPrice))
                        return false;
                if (startDate == null) {
                        if (other.startDate != null)
                                return false;
                } else if (!startDate.equals(other.startDate))
                        return false;
                if (Float.floatToIntBits(supportPrice) != Float.floatToIntBits(other.supportPrice))
                        return false;
                if (tagId != other.tagId)
                        return false;
                return true;
        }
        
        
        
}