Datasets:
ArXiv:
License:
| package br.dsw.pojo; | |
| import java.io.Serializable; | |
| import java.util.List; | |
| import javax.persistence.CascadeType; | |
| import javax.persistence.Column; | |
| import javax.persistence.Entity; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import javax.persistence.JoinColumn; | |
| import javax.persistence.NamedQuery; | |
| import javax.persistence.OneToMany; | |
| import javax.persistence.OneToOne; | |
| public class Teatro implements Serializable { | |
| private Usuario usuario; | |
| private List<Promocao> promocoes; | |
| private String cnpj; | |
| private String nome; | |
| private String cidade; | |
| public Usuario getUsuario() { | |
| return usuario; | |
| } | |
| public void setUsuario(Usuario usuario) { | |
| this.usuario = usuario; | |
| } | |
| public List<Promocao> getPromocoes() { | |
| return promocoes; | |
| } | |
| public void setPromocoes(List<Promocao> promocoes) { | |
| this.promocoes = promocoes; | |
| } | |
| public String getCnpj() { | |
| return cnpj; | |
| } | |
| public void setCnpj(String cnpj) { | |
| this.cnpj = cnpj; | |
| } | |
| public String getNome() { | |
| return nome; | |
| } | |
| public void setNome(String nome) { | |
| this.nome = nome; | |
| } | |
| public String getCidade() { | |
| return cidade; | |
| } | |
| public void setCidade(String cidade) { | |
| this.cidade = cidade; | |
| } | |
| public String toString() { | |
| return nome; | |
| } | |
| public int hashCode() { | |
| return nome.hashCode(); | |
| } | |
| public boolean equals(Object obj) { | |
| if (this == obj) { | |
| return true; | |
| } | |
| if (obj == null) { | |
| return false; | |
| } | |
| if (getClass() != obj.getClass()) { | |
| return false; | |
| } | |
| Teatro other = (Teatro) obj; | |
| if (nome != other.getNome()) { | |
| return false; | |
| } | |
| return true; | |
| } | |
| } | |