/*
 * 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 br.com.ctecinf.model;

import br.com.ctecinf.orm.Model;
import br.com.ctecinf.orm.Table;
import br.com.ctecinf.orm.Column;
import java.sql.Types;

/**
 *
 * @author Cássio Conceição
 * @since 21/08/2019 17:06:02
 * @version 201908
 * @see http://ctecinf.com.br/
 */
@Table("sub_grupo")
public class SubGrupo extends Model {

    @Column(name = "descricao", type = Types.VARCHAR, isNotNull = true, label = "Descrição", tableDisplay = true)
    private String descricao;

    @Column(name = "valor", type = Types.DECIMAL, label = "Valor", tableDisplay = true)
    private java.math.BigDecimal valor;

    public String getDescricao() {
        return this.descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public java.math.BigDecimal getValor() {
        return this.valor;
    }

    public void setValor(java.math.BigDecimal valor) {
        this.valor = valor;
    }

    @Override
    public String toString() {
        return descricao == null ? "SubGrupo {" + (getId() == null ? "Não cadastrado" : "ID = " + getId()) + "}" : descricao;
    }
}