Subversion Repositories SmartDukaan

Rev

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

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

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

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

@Entity
@Table(name="fofo.fofo_stock_allocation")
public class FofoStockAllocation implements Serializable{

        private static final long serialVersionUID = 1L;

        @Id
        @Column(name = "item_id")
        private int itemId;

        @Column(name = "create_timestamp")
        private LocalDateTime createTimestamp = LocalDateTime.now();
        
        @Column(name = "update_timestamp")
        private LocalDateTime updateTimestamp;

        @Column(name = "active")
        private boolean active;

        @Column(name = "quantity")
        private int quantity;

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

        public int getQuantity() {
                return quantity;
        }



        public void setQuantity(int quantity) {
                this.quantity = quantity;
        }



        public int getFofoId() {
                return fofoId;
        }



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



        public int getItemId() {
                return itemId;
        }



        public void setItemId(int itemId) {
                this.itemId = itemId;
        }




        public boolean isActive() {
                return active;
        }



        public LocalDateTime getCreateTimestamp() {
                return createTimestamp;
        }



        public void setCreateTimestamp(LocalDateTime createTimestamp) {
                this.createTimestamp = createTimestamp;
        }



        public LocalDateTime getUpdateTimestamp() {
                return updateTimestamp;
        }



        public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
                this.updateTimestamp = updateTimestamp;
        }



        public void setActive(boolean active) {
                this.active = active;
        }



        @Override
        public String toString() {
                return "FofoStockAllocation [itemId=" + itemId + ", createTimestamp=" + createTimestamp + ", updateTimestamp="
                                + updateTimestamp + ", active=" + active + ", quantity=" + quantity + ", fofoId=" + fofoId + "]";
        }
        
        
}