Created
October 13, 2013 05:10
-
-
Save jrichardsz/6958412 to your computer and use it in GitHub Desktop.
Simple pojo "cliente"
This file contains 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
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