Skip to content

Instantly share code, notes, and snippets.

@edermfl
Created April 27, 2017 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edermfl/acbbf07d0b237eccb051822057e594b3 to your computer and use it in GitHub Desktop.
Save edermfl/acbbf07d0b237eccb051822057e594b3 to your computer and use it in GitHub Desktop.
@Entity
@Table(name = "CLIENTE")
public class Cliente {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column
private String nome;
@Column
private String rg;
public Long getId() {
return id;
}
public String getNome() {
return nome;
}
public String getRg() {
return rg;
}
public void setId(final Long pId) {
id = pId;
}
public void setNome(final String pNome) {
nome = pNome;
}
public void setRg(final String pRg) {
rg = pRg;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment