/*
 * 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("municipio")
public class Municipio extends Model {

    @Column(name = "cod_ibge", type = Types.INTEGER, isNotNull = true, label = "Cod Ibge")
    private Integer codIbge;

    @Column(name = "nome", type = Types.VARCHAR, isNotNull = true, label = "Nome")
    private String nome;

    @Column(name = "uf_cod_ibge", type = Types.INTEGER, isNotNull = true, label = "Uf Cod Ibge")
    private Integer ufCodIbge;

    @Column(name = "uf_nome", type = Types.VARCHAR, isNotNull = true, label = "Uf Nome")
    private String ufNome;

    @Column(name = "uf_sigla", type = Types.VARCHAR, isNotNull = true, label = "Uf Sigla")
    private String ufSigla;

    public Integer getCodIbge() {
        return this.codIbge;
    }

    public void setCodIbge(Integer codIbge) {
        this.codIbge = codIbge;
    }

    public String getNome() {
        return this.nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public Integer getUfCodIbge() {
        return this.ufCodIbge;
    }

    public void setUfCodIbge(Integer ufCodIbge) {
        this.ufCodIbge = ufCodIbge;
    }

    public String getUfNome() {
        return this.ufNome;
    }

    public void setUfNome(String ufNome) {
        this.ufNome = ufNome;
    }

    public String getUfSigla() {
        return this.ufSigla;
    }

    public void setUfSigla(String ufSigla) {
        this.ufSigla = ufSigla;
    }

    @Override
    public String toString() {
        return (nome + " - " + ufSigla).trim();
    }
}