/*
 * 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.views;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 *
 * @author David Rodriguez
 */
@Entity
@Table(name = "APC_CLOSING_DAY_VIEW")
public class StatsClosingDayView 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 = "name")
    private String userName;

    @Column(name = "total_closing")
    private BigDecimal totalClosingDay;

    @Column(name = "created_on")
    private Date createdOn;
    
    @Column(name = "route_name")
    private String routeName;

    public String getId() {
        return id;
    }

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

    public Date getCreatedOn() {
        return createdOn;
    }

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

    public String getIdUser() {
        return idUser;
    }

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

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public BigDecimal getTotalClosingDay() {
        return totalClosingDay;
    }

    public void setTotalClosingDay(BigDecimal totalClosingDay) {
        this.totalClosingDay = totalClosingDay;
    }
    
    public String getRouteName() {
        return routeName;
    }

    public void setRouteName(String routeName) {
        this.routeName = routeName;
    }

    @Override
    public String toString() {
        return "FeesView{" + "idUser=" + idUser + ", userName=" + userName + ", totalClosingDay=" + totalClosingDay + ", createdOn=" + createdOn + '}';
    }
}
