Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.com.rang.social.persistence.model;
- import java.util.Date;
- import java.util.List;
- import com.fasterxml.jackson.annotation.JsonIgnore;
- public class Estabelecimento extends AbstractEntity {
- private String cnpj;
- private Date dataUltimaAtualizacao;
- private String nome;
- private Boolean exibePortal;
- private Endereco endereco;
- @JsonIgnore
- private List<Telefone> telefoneList;
- @JsonIgnore
- private List<Email> emailList;
- public Estabelecimento() {
- }
- public Estabelecimento(Long id) {
- setId(id);
- }
- public Estabelecimento(Long id, String nome) {
- setId(id);
- this.nome = nome;
- }
- public Estabelecimento(Long id, String nome, String cnpj) {
- setId(id);
- this.nome = nome;
- this.cnpj = cnpj;
- }
- public Estabelecimento(Long id, boolean situacao, String nome, String cnpj) {
- setId(id);
- setSituacao(situacao);
- this.nome = nome;
- this.cnpj = cnpj;
- }
- public void setDataUltimaAtualizacao(Date dataUltimaAtualizacao) {
- this.dataUltimaAtualizacao = dataUltimaAtualizacao;
- }
- public Date getDataUltimaAtualizacao() {
- return dataUltimaAtualizacao;
- }
- public String getCnpj() {
- return cnpj;
- }
- public void setCnpj(String cnpj) {
- this.cnpj = cnpj;
- }
- public List<Email> getEmailList() {
- return emailList;
- }
- public void setEmailList(List<Email> emailList) {
- this.emailList = emailList;
- }
- public Boolean getExibePortal() {
- return exibePortal;
- }
- public void setExibePortal(Boolean exibePortal) {
- this.exibePortal = exibePortal;
- }
- public Estabelecimento(Long id, Date dataCadastro, String nome) {
- setId(id);
- setDataCadastro(dataCadastro);
- this.nome = nome;
- }
- public String getNome() {
- return nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- public Endereco getEndereco() {
- return endereco;
- }
- public void setEndereco(Endereco endereco) {
- this.endereco = endereco;
- }
- public List<Telefone> getTelefoneList() {
- return telefoneList;
- }
- public void setTelefoneList(List<Telefone> telefoneList) {
- this.telefoneList = telefoneList;
- }
- @Override
- public String toString() {
- return "Estabelecimento [cnpj=" + cnpj + ", dataUltimaAtualizacao=" + dataUltimaAtualizacao + ", nome=" + nome
- + ", exibePortal=" + exibePortal + ", endereco=" + endereco + ", telefoneList=" + telefoneList
- + ", emailList=" + emailList + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement