Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarJPA/src/model/Alumno.java
diff options
context:
space:
mode:
Diffstat (limited to 'EjercitarJPA/src/model/Alumno.java')
-rw-r--r--EjercitarJPA/src/model/Alumno.java94
1 files changed, 94 insertions, 0 deletions
diff --git a/EjercitarJPA/src/model/Alumno.java b/EjercitarJPA/src/model/Alumno.java
new file mode 100644
index 0000000..2265447
--- /dev/null
+++ b/EjercitarJPA/src/model/Alumno.java
@@ -0,0 +1,94 @@
+package model;
+
+import java.io.Serializable;
+import javax.persistence.*;
+import java.util.Date;
+
+
+/**
+ * The persistent class for the alumno database table.
+ *
+ */
+@Entity
+public class Alumno implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @Column(name="\"idAlumno\"")
+ private Integer idAlumno;
+
+ private String apellido;
+
+ private Integer cedula;
+
+ @Temporal(TemporalType.DATE)
+ @Column(name="fecha_nacimiento")
+ private Date fechaNacimiento;
+
+ private String genero;
+
+ @Column(name="\"idCurso\"")
+ private Integer idCurso;
+
+ private String nombre;
+
+ public Alumno() {
+ }
+
+ public Integer getIdAlumno() {
+ return this.idAlumno;
+ }
+
+ public void setIdAlumno(Integer idAlumno) {
+ this.idAlumno = idAlumno;
+ }
+
+ public String getApellido() {
+ return this.apellido;
+ }
+
+ public void setApellido(String apellido) {
+ this.apellido = apellido;
+ }
+
+ public Integer getCedula() {
+ return this.cedula;
+ }
+
+ public void setCedula(Integer cedula) {
+ this.cedula = cedula;
+ }
+
+ public Date getFechaNacimiento() {
+ return this.fechaNacimiento;
+ }
+
+ public void setFechaNacimiento(Date fechaNacimiento) {
+ this.fechaNacimiento = fechaNacimiento;
+ }
+
+ public String getGenero() {
+ return this.genero;
+ }
+
+ public void setGenero(String genero) {
+ this.genero = genero;
+ }
+
+ public Integer getIdCurso() {
+ return this.idCurso;
+ }
+
+ public void setIdCurso(Integer idCurso) {
+ this.idCurso = idCurso;
+ }
+
+ public String getNombre() {
+ return this.nombre;
+ }
+
+ public void setNombre(String nombre) {
+ this.nombre = nombre;
+ }
+
+} \ No newline at end of file