Subversion Repositories SmartDukaan

Rev

Rev 25721 | Rev 27088 | 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.catalog;

import java.io.Serializable;
import java.time.LocalDateTime;

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

import com.spice.profitmandi.dao.entity.fofo.PartnerType;

@Entity
@Table(name = "catalog.focused_model", schema = "catalog")
public class FocusedModel implements Serializable {

        private static final long serialVersionUID = 1L;

        @Id
        @Column(name = "id", columnDefinition = "int(11)")
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private int id;

        @Column(name = "catalog_id")
        private int catalogId;

        public int getId() {
                return id;
        }

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

        @Column(name = "recommended_qty")
        private int recommendedQty;

        @Column(name = "minimum_qty")
        private int minimumQty;

        @Column(name = "partner_type")
        @Enumerated(EnumType.STRING)
        private PartnerType partnerType;;

        @Column(name = "created_timestamp")
        private LocalDateTime createdTimestamp;

        public PartnerType getPartnerType() {
                return partnerType;
        }

        public void setPartnerType(PartnerType partnerType) {
                this.partnerType = partnerType;
        }

        public int getCatalogId() {
                return catalogId;
        }

        public LocalDateTime getCreatedTimestamp() {
                return createdTimestamp;
        }

        public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
                this.createdTimestamp = createdTimestamp;
        }

        public void setCatalogId(int catalogId) {
                this.catalogId = catalogId;
        }

        public int getRecommendedQty() {
                return recommendedQty;
        }

        public void setRecommendedQty(int recommendedQty) {
                this.recommendedQty = recommendedQty;
        }

        public int getMinimumQty() {
                return minimumQty;
        }

        public void setMinimumQty(int minimumQty) {
                this.minimumQty = minimumQty;
        }

        public static long getSerialversionuid() {
                return serialVersionUID;
        }

        @Override
        public String toString() {
                return "FocusedModel [id=" + id + ", catalogId=" + catalogId + ", recommendedQty=" + recommendedQty
                                + ", minimumQty=" + minimumQty + ", partnerType=" + partnerType + ", createdTimestamp="
                                + createdTimestamp + "]";
        }

}