Subversion Repositories SmartDukaan

Rev

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

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

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.YearMonth;

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.monthly_planned")
public class MonthlyPlanned {

        @Id
        @Column(name = "id", unique = true, updatable = false)
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private int id;

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

        @Column(name = "freeze_timestamp")
        private LocalDateTime freezeTimestamp;

        @Column(name = "yearMonth")
        private LocalDate yearMonth;

        public LocalDate getYearMonth() {
                return yearMonth;
        }

        public void setYearMonth(LocalDate yearMonth) {
                this.yearMonth = yearMonth;
        }

        public int getId() {
                return id;
        }

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

        public int getFofoId() {
                return fofoId;
        }

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

        public LocalDateTime getFreezeTimestamp() {
                return freezeTimestamp;
        }

        public void setFreezeTimestamp(LocalDateTime freezeTimestamp) {
                this.freezeTimestamp = freezeTimestamp;
        }

        @Override
        public String toString() {
                return "MonthlyPlanned [id=" + id + ", fofoId=" + fofoId + ", freezeTimestamp=" + freezeTimestamp
                                + ", yearMonth=" + yearMonth + "]";
        }

}