- package com.model.entities;
- import java.util.Objects;
- public class Usuario {
- private Integer id;
- private String nome;
- private String email;
- public Usuario(){
- }
- public Usuario(Integer id, String nome, String email) {
- this.id = id;
- this.nome = nome;
- this.email = email;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getNome() {
- return nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- public String getEmail() {
- return email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- @Override
- public int hashCode() {
- int hash = 5;
- hash = 97 * hash + Objects.hashCode(this.id);
- return hash;
- }
- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final Usuario other = (Usuario) obj;
- if (!Objects.equals(this.id, other.id)) {
- return false;
- }
- return true;
- }
- @Override
- public String toString() {
- return "Usuario{" + "id=" + id + ", nome=" + nome + ", email=" + email + '}';
- }
- }
[text] Usuario
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: