Subversion Repositories SmartDukaan

Rev

Rev 31626 | 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.fofo;

import java.time.LocalDateTime;
import java.util.Objects;

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

@Entity
@Table(name = "fofo.catalog_favourite", schema = "fofo")
public class CatalogFavourite {

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

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

        @Column(name = "fofo_id")
        private int fofoId;

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

        public int getId() {
                return id;
        }

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

        public int getCatatlogId() {
                return catatlogId;
        }

        public void setCatatlogId(int catatlogId) {
                this.catatlogId = catatlogId;
        }

        public int getFofoId() {
                return fofoId;
        }

        public void setFofoId(int fofoId) {
                this.fofoId = fofoId;
        }

        public LocalDateTime getCreatedTimestamp() {
                return createdTimestamp;
        }

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

        @Override
        public int hashCode() {
                return Objects.hash(catatlogId, createdTimestamp, fofoId, id);
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                CatalogFavourite other = (CatalogFavourite) obj;
                return catatlogId == other.catatlogId && createdTimestamp == other.createdTimestamp && fofoId == other.fofoId
                                && id == other.id;
        }

        @Override
        public String toString() {
                return "CatalogFavourite [id=" + id + ", catatlogId=" + catatlogId + ", fofoId=" + fofoId
                                + ", createdTimestamp=" + createdTimestamp + "]";
        }

}