Created
September 20, 2016 03:14
-
-
Save lucas-marciano/a197a5f2b4ea89d77fd0609059de3f09 to your computer and use it in GitHub Desktop.
Classe de entidade Pessoa, que implementa a interface Serializable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.Serializable; | |
| public class Pessoa implements Serializable{ | |
| private int codigo; | |
| private String nome; | |
| public static final long serialVersionUID = 100L; | |
| public int getCodigo() { | |
| return codigo; | |
| } | |
| public void setCodigo(int codigo) { | |
| this.codigo = codigo; | |
| } | |
| public String getNome() { | |
| return nome; | |
| } | |
| public void setNome(String nome) { | |
| this.nome = nome; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment