/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.arrebol.apc.model.admin;

import com.arrebol.apc.model.enums.EmployeeSavingType;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 *
 * @author Administrador
 */
@Entity
@Table(name = "APC_EMPLOYEE_SAVING")
public class EmployeeSaving implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    @Column(name = "id", length = 36)
    private String id;
        
    @Column(name = "id_user", length = 36)
    private String idUser;
    
    @Column(name = "employee_saving", nullable = false)
    private BigDecimal employeeSaving;
    
    @Column(name = "created_by", length = 36)
    private String createdBy;
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "created_on", length = 19)
    private Date createdOn;
    
    @Enumerated(EnumType.STRING)
    @Column(name = "type", nullable = false)
    private EmployeeSavingType type;

    public EmployeeSavingType getType() {
        return type;
    }

    public void setType(EmployeeSavingType type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

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

    public String getIdUser() {
        return idUser;
    }

    public void setIdUser(String idUser) {
        this.idUser = idUser;
    }

    public BigDecimal getEmployeeSaving() {
        return employeeSaving;
    }

    public void setEmployeeSaving(BigDecimal paymentAmount) {
        this.employeeSaving = paymentAmount;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }
}
