Subversion Repositories SmartDukaan

Rev

Rev 34881 | Blame | Compare with Previous | Last modification | View Log | RSS feed

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

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@Table(name = "web.affiliate_link")
public class AffiliateLinks {

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

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

    @Column(name = "customer_id", nullable = false)
    private int customerId;

    @Column(name = "created_at")
    private LocalDateTime createdAt;

    @Column(name = "affiliate_code", length = 50)
    private String affiliateCode;

    @Column(name = "link_type", length = 20)
    private String linkType;


    public AffiliateLinks() {
    }

    public AffiliateLinks(int id, int catalogId, int customerId, LocalDateTime createdAt, String affiliateCode, String linkType) {
        this.id = id;
        this.catalogId = catalogId;
        this.customerId = customerId;
        this.createdAt = createdAt;
        this.affiliateCode = affiliateCode;
        this.linkType = linkType;
    }

    public int getId() {
        return id;
    }

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

    public int getCatalogId() {
        return catalogId;
    }

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

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public String getAffiliateCode() {
        return affiliateCode;
    }

    public void setAffiliateCode(String affiliateCode) {
        this.affiliateCode = affiliateCode;
    }

    public String getLinkType() {
        return linkType;
    }

    public void setLinkType(String linkType) {
        this.linkType = linkType;
    }

    @Override
    public String toString() {
        return "AffiliateLinks{" +
                "id=" + id +
                ", catalogId=" + catalogId +
                ", customerId=" + customerId +
                ", createdAt=" + createdAt +
                ", affiliateCode='" + affiliateCode + '\'' +
                ", linkType='" + linkType + '\'' +
                '}';
    }
}