Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created October 13, 2013 05:10
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 jrichardsz/6958412 to your computer and use it in GitHub Desktop.
Save jrichardsz/6958412 to your computer and use it in GitHub Desktop.
Simple pojo "cliente"
package com.empresa.modelo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "cliente")
public class Cliente {
@Id
@Column(name = "id", nullable = false)
private Long id;
@Column(name = "dna", nullable = false)
private String dna;
@Column(name = "nombre_completo", nullable = false)
private String nombreCompleto;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDna() {
return dna;
}
public void setDna(String dna) {
this.dna = dna;
}
public String getNombreCompleto() {
return nombreCompleto;
}
public void setNombreCompleto(String nombreCompleto) {
this.nombreCompleto = nombreCompleto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment