Subversion Repositories SmartDukaan

Rev

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.dtr;

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;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * This class basically contains api details
 * 
 * @author ashikali
 *
 */
@Entity
@Table(name = "dtr.web_offer_product", schema = "dtr")
public class WebOfferProduct implements Serializable {

        private static final long serialVersionUID = 1L;
        @JsonProperty(defaultValue = "0")
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private int id;

        @Column
        private int webOfferId;

        @Column
        private int entityId;

        @JsonProperty(defaultValue = "0")
        @Column(name = "rank")
        private int rank;

        @Transient
        private String productName;

        public String getProductName() {
                return productName;
        }

        public void setProductName(String productName) {
                this.productName = productName;
        }

        public int getId() {
                return id;
        }

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

        public int getWebOfferId() {
                return webOfferId;
        }

        public void setWebOfferId(int webOfferId) {
                this.webOfferId = webOfferId;
        }

        public int getEntityId() {
                return entityId;
        }

        public void setEntityId(int entityId) {
                this.entityId = entityId;
        }

        public int getRank() {
                return rank;
        }

        public void setRank(int rank) {
                this.rank = rank;
        }

}