Advertisement
Guest User

Estabelecimento

a guest
Mar 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.53 KB | None | 0 0
  1. package br.com.rang.social.persistence.model;
  2.  
  3. import java.util.Date;
  4. import java.util.List;
  5.  
  6. import com.fasterxml.jackson.annotation.JsonIgnore;
  7.  
  8. public class Estabelecimento extends AbstractEntity {
  9.  
  10.     private String cnpj;
  11.  
  12.     private Date dataUltimaAtualizacao;
  13.  
  14.     private String nome;
  15.  
  16.     private Boolean exibePortal;
  17.  
  18.     private Endereco endereco;
  19.  
  20.     @JsonIgnore
  21.     private List<Telefone> telefoneList;
  22.  
  23.     @JsonIgnore
  24.     private List<Email> emailList;
  25.  
  26.     public Estabelecimento() {
  27.  
  28.     }
  29.  
  30.     public Estabelecimento(Long id) {
  31.     setId(id);
  32.     }
  33.  
  34.     public Estabelecimento(Long id, String nome) {
  35.     setId(id);
  36.     this.nome = nome;
  37.     }
  38.  
  39.     public Estabelecimento(Long id, String nome, String cnpj) {
  40.     setId(id);
  41.     this.nome = nome;
  42.     this.cnpj = cnpj;
  43.     }
  44.  
  45.     public Estabelecimento(Long id, boolean situacao, String nome, String cnpj) {
  46.     setId(id);
  47.     setSituacao(situacao);
  48.     this.nome = nome;
  49.     this.cnpj = cnpj;
  50.     }
  51.  
  52.     public void setDataUltimaAtualizacao(Date dataUltimaAtualizacao) {
  53.     this.dataUltimaAtualizacao = dataUltimaAtualizacao;
  54.     }
  55.  
  56.     public Date getDataUltimaAtualizacao() {
  57.     return dataUltimaAtualizacao;
  58.     }
  59.  
  60.     public String getCnpj() {
  61.     return cnpj;
  62.     }
  63.  
  64.     public void setCnpj(String cnpj) {
  65.     this.cnpj = cnpj;
  66.     }
  67.  
  68.     public List<Email> getEmailList() {
  69.     return emailList;
  70.     }
  71.  
  72.     public void setEmailList(List<Email> emailList) {
  73.     this.emailList = emailList;
  74.     }
  75.  
  76.     public Boolean getExibePortal() {
  77.         return exibePortal;
  78.     }
  79.  
  80.     public void setExibePortal(Boolean exibePortal) {
  81.         this.exibePortal = exibePortal;
  82.     }
  83.  
  84.     public Estabelecimento(Long id, Date dataCadastro, String nome) {
  85.     setId(id);
  86.     setDataCadastro(dataCadastro);
  87.     this.nome = nome;
  88.     }
  89.  
  90.     public String getNome() {
  91.     return nome;
  92.     }
  93.  
  94.     public void setNome(String nome) {
  95.     this.nome = nome;
  96.     }
  97.  
  98.     public Endereco getEndereco() {
  99.     return endereco;
  100.     }
  101.  
  102.     public void setEndereco(Endereco endereco) {
  103.     this.endereco = endereco;
  104.     }
  105.  
  106.     public List<Telefone> getTelefoneList() {
  107.     return telefoneList;
  108.     }
  109.  
  110.     public void setTelefoneList(List<Telefone> telefoneList) {
  111.     this.telefoneList = telefoneList;
  112.     }
  113.  
  114.     @Override
  115.     public String toString() {
  116.         return "Estabelecimento [cnpj=" + cnpj + ", dataUltimaAtualizacao=" + dataUltimaAtualizacao + ", nome=" + nome
  117.                 + ", exibePortal=" + exibePortal + ", endereco=" + endereco + ", telefoneList=" + telefoneList
  118.                 + ", emailList=" + emailList + "]";
  119.     }
  120.    
  121.    
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement