/*
 * 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_PAYMENT_VIEW")
public class StatsPaymentView 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_loan", length = 36)
    private String idLoan;
    
    @Column(name = "id_user", length = 36)
    private String idUser;

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

    @Column(name = "total_payment")
    private BigDecimal totalPayment;
    
    @Column(name = "opening_fee")
    private BigDecimal openingFee;

    @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 getIdUser() {
        return idUser;
    }

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

    public String getIdLoan() {
        return idLoan;
    }

    public void setIdLoan(String idLoan) {
        this.idLoan = idLoan;
    }
    
    public String getUserName() {
        return userName;
    }

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

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

    public BigDecimal getTotalPayment() {
        return totalPayment;
    }

    public void setTotalPayment(BigDecimal totalPayment) {
        this.totalPayment = totalPayment;
    }

    public BigDecimal getOpeningFee() {
        return openingFee;
    }

    public void setOpeningFee(BigDecimal openingFee) {
        this.openingFee = openingFee;
    }
    
    @Override
    public String toString() {
        return "FeesView{" + "idUser=" + idUser + ", userName=" + userName + ", totalPayment=" + totalPayment + ", createdOn=" + createdOn + '}';
    }
}
