/*
 * 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_STATS_ADVANCE_VIEW")
public class StatsAdvancesView 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_route", length = 36)
    private String idRoute;

    @Column(name = "name")
    private String routeName;

    @Column(name = "total_advances")
    private BigDecimal totalAdvances;

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

    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 getIdRoute() {
        return idRoute;
    }

    public void setIdRoute(String idRoute) {
        this.idRoute = idRoute;
    }

    public String getRouteName() {
        return routeName;
    }

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

    public BigDecimal getTotalAdvances() {
        return totalAdvances;
    }

    public void setTotalAdvances(BigDecimal totalAdvances) {
        this.totalAdvances = totalAdvances;
    }

    @Override
    public String toString() {
        return "AdvancesView{" + "idRoute=" + idRoute + ", routeName=" + routeName + ", totalAdvances=" + totalAdvances + ", createdOn=" + createdOn + '}';
    }
}
