content: /*******************************************************************************
  Title: T2Ti ERP Fenix                                                                
  Description: Model relacionado à tabela [PESSOA_ENDERECO] 
                                                                                  
  The MIT License                                                                 
                                                                                  
  Copyright: Copyright (C) 2020 T2Ti.COM                                          
                                                                                  
  Permission is hereby granted, free of charge, to any person                     
  obtaining a copy of this software and associated documentation                  
  files (the "Software"), to deal in the Software without                         
  restriction, including without limitation the rights to use,                    
  copy, modify, merge, publish, distribute, sublicense, and/or sell               
  copies of the Software, and to permit persons to whom the                       
  Software is furnished to do so, subject to the following                        
  conditions:                                                                     
                                                                                  
  The above copyright notice and this permission notice shall be                  
  included in all copies or substantial portions of the Software.                 
                                                                                  
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,                 
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES                 
  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND                        
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT                     
  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,                    
  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING                    
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR                   
  OTHER DEALINGS IN THE SOFTWARE.                                                 
                                                                                  
         The author may be contacted at:                                          
             t2ti.com@gmail.com                                                   
                                                                                  
  @author Albert Eije (alberteije@gmail.com)                    
  @version 1.0.0
  *******************************************************************************/
  package com.t2ti.fenix.model.cadastros;
  
  import java.io.Serializable;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Id;
  import javax.persistence.NamedQuery;
  import javax.persistence.Table;
  import javax.persistence.JoinColumn;
  import javax.persistence.ManyToOne;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  
  @Entity
  @Table(name="PESSOA_ENDERECO")
  @NamedQuery(name="PessoaEndereco.findAll", query="SELECT t FROM PessoaEndereco t")
  public class PessoaEndereco implements Serializable {
  	private static final long serialVersionUID = 1L;
  
      @Id
  	@GeneratedValue(strategy = GenerationType.IDENTITY)
  	private Integer id;
  
      @Column(name="LOGRADOURO")
  	private String logradouro;
  
      @Column(name="NUMERO")
  	private String numero;
  
      @Column(name="BAIRRO")
  	private String bairro;
  
      @Column(name="MUNICIPIO_IBGE")
  	private Integer municipioIbge;
  
      @Column(name="UF")
  	private String uf;
  
      @Column(name="CEP")
  	private String cep;
  
      @Column(name="CIDADE")
  	private String cidade;
  
      @Column(name="COMPLEMENTO")
  	private String complemento;
  
      @Column(name="PRINCIPAL")
  	private String principal;
  
      @Column(name="ENTREGA")
  	private String entrega;
  
      @Column(name="COBRANCA")
  	private String cobranca;
  
      @Column(name="CORRESPONDENCIA")
  	private String correspondencia;
  
      @ManyToOne
  	@JsonIgnore
  	@JoinColumn(name="ID_PESSOA")
      private Pessoa pessoa;
  
  	public PessoaEndereco() {
  		//construtor padrão
  	}
  
      public Integer getId() {
  		return this.id;
  	}
  
  	public void setId(Integer id) {
  		this.id = id;
  	}
  
      public String getLogradouro() {
  		return this.logradouro;
  	}
  
  	public void setLogradouro(String logradouro) {
  		this.logradouro = logradouro;
  	}
  
      public String getNumero() {
  		return this.numero;
  	}
  
  	public void setNumero(String numero) {
  		this.numero = numero;
  	}
  
      public String getBairro() {
  		return this.bairro;
  	}
  
  	public void setBairro(String bairro) {
  		this.bairro = bairro;
  	}
  
      public Integer getMunicipioIbge() {
  		return this.municipioIbge;
  	}
  
  	public void setMunicipioIbge(Integer municipioIbge) {
  		this.municipioIbge = municipioIbge;
  	}
  
      public String getUf() {
  		return this.uf;
  	}
  
  	public void setUf(String uf) {
  		this.uf = uf;
  	}
  
      public String getCep() {
  		return this.cep;
  	}
  
  	public void setCep(String cep) {
  		this.cep = cep;
  	}
  
      public String getCidade() {
  		return this.cidade;
  	}
  
  	public void setCidade(String cidade) {
  		this.cidade = cidade;
  	}
  
      public String getComplemento() {
  		return this.complemento;
  	}
  
  	public void setComplemento(String complemento) {
  		this.complemento = complemento;
  	}
  
      public String getPrincipal() {
  		return this.principal;
  	}
  
  	public void setPrincipal(String principal) {
  		this.principal = principal;
  	}
  
      public String getEntrega() {
  		return this.entrega;
  	}
  
  	public void setEntrega(String entrega) {
  		this.entrega = entrega;
  	}
  
      public String getCobranca() {
  		return this.cobranca;
  	}
  
  	public void setCobranca(String cobranca) {
  		this.cobranca = cobranca;
  	}
  
      public String getCorrespondencia() {
  		return this.correspondencia;
  	}
  
  	public void setCorrespondencia(String correspondencia) {
  		this.correspondencia = correspondencia;
  	}
  
      public Pessoa getPessoa() {
  		return this.pessoa;
  	}
  
  	public void setPessoa(Pessoa pessoa) {
  		this.pessoa = pessoa;
  	}
  
  		
  }