Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamu <samurey@gmail.com>2013-02-13 23:53:01 (GMT)
committer Samu <samurey@gmail.com>2013-02-13 23:53:01 (GMT)
commitfd73abb035904dd245a03924c444a3dc5083304f (patch)
tree5e2320c5a4710864633fff7ca2fda24f3d0ed866
parente702d72f377d29622ffad1461561c4d7272d68d3 (diff)
Modelos agregados
-rw-r--r--EjercitarJPA/src/model/Alumno.java94
-rw-r--r--EjercitarJPA/src/model/Curso.java52
-rw-r--r--EjercitarJPA/src/model/Profesor.java70
-rw-r--r--EjercitarJPA/src/model/Sesion.java52
-rw-r--r--EjercitarJPA/src/model/Tarea.java52
5 files changed, 320 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
diff --git a/EjercitarJPA/src/model/Curso.java b/EjercitarJPA/src/model/Curso.java
new file mode 100644
index 0000000..302ad7c
--- /dev/null
+++ b/EjercitarJPA/src/model/Curso.java
@@ -0,0 +1,52 @@
+package model;
+
+import java.io.Serializable;
+import javax.persistence.*;
+
+
+/**
+ * The persistent class for the curso database table.
+ *
+ */
+@Entity
+public class Curso implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @Column(name="\"idCurso\"")
+ private Integer idCurso;
+
+ @Column(name="\"idEscuela\"")
+ private Integer idEscuela;
+
+ @Column(name="\"idProfesor\"")
+ private Integer idProfesor;
+
+ public Curso() {
+ }
+
+ public Integer getIdCurso() {
+ return this.idCurso;
+ }
+
+ public void setIdCurso(Integer idCurso) {
+ this.idCurso = idCurso;
+ }
+
+ public Integer getIdEscuela() {
+ return this.idEscuela;
+ }
+
+ public void setIdEscuela(Integer idEscuela) {
+ this.idEscuela = idEscuela;
+ }
+
+ public Integer getIdProfesor() {
+ return this.idProfesor;
+ }
+
+ public void setIdProfesor(Integer idProfesor) {
+ this.idProfesor = idProfesor;
+ }
+
+} \ No newline at end of file
diff --git a/EjercitarJPA/src/model/Profesor.java b/EjercitarJPA/src/model/Profesor.java
new file mode 100644
index 0000000..bfd1553
--- /dev/null
+++ b/EjercitarJPA/src/model/Profesor.java
@@ -0,0 +1,70 @@
+package model;
+
+import java.io.Serializable;
+import javax.persistence.*;
+
+
+/**
+ * The persistent class for the profesor database table.
+ *
+ */
+@Entity
+public class Profesor implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @Column(name="\"idProfesor\"")
+ private Integer idProfesor;
+
+ private String apellido;
+
+ private Integer cedula;
+
+ private String grado;
+
+ private String nombre;
+
+ public Profesor() {
+ }
+
+ public Integer getIdProfesor() {
+ return this.idProfesor;
+ }
+
+ public void setIdProfesor(Integer idProfesor) {
+ this.idProfesor = idProfesor;
+ }
+
+ 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 String getGrado() {
+ return this.grado;
+ }
+
+ public void setGrado(String grado) {
+ this.grado = grado;
+ }
+
+ public String getNombre() {
+ return this.nombre;
+ }
+
+ public void setNombre(String nombre) {
+ this.nombre = nombre;
+ }
+
+} \ No newline at end of file
diff --git a/EjercitarJPA/src/model/Sesion.java b/EjercitarJPA/src/model/Sesion.java
new file mode 100644
index 0000000..16145df
--- /dev/null
+++ b/EjercitarJPA/src/model/Sesion.java
@@ -0,0 +1,52 @@
+package model;
+
+import java.io.Serializable;
+import javax.persistence.*;
+
+
+/**
+ * The persistent class for the sesion database table.
+ *
+ */
+@Entity
+public class Sesion implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @Column(name="\"idSesion\"")
+ private Integer idSesion;
+
+ @Column(name="\"idAlumno\"")
+ private Integer idAlumno;
+
+ @Column(name="\"idProfesor\"")
+ private Integer idProfesor;
+
+ public Sesion() {
+ }
+
+ public Integer getIdSesion() {
+ return this.idSesion;
+ }
+
+ public void setIdSesion(Integer idSesion) {
+ this.idSesion = idSesion;
+ }
+
+ public Integer getIdAlumno() {
+ return this.idAlumno;
+ }
+
+ public void setIdAlumno(Integer idAlumno) {
+ this.idAlumno = idAlumno;
+ }
+
+ public Integer getIdProfesor() {
+ return this.idProfesor;
+ }
+
+ public void setIdProfesor(Integer idProfesor) {
+ this.idProfesor = idProfesor;
+ }
+
+} \ No newline at end of file
diff --git a/EjercitarJPA/src/model/Tarea.java b/EjercitarJPA/src/model/Tarea.java
new file mode 100644
index 0000000..73a35a1
--- /dev/null
+++ b/EjercitarJPA/src/model/Tarea.java
@@ -0,0 +1,52 @@
+package model;
+
+import java.io.Serializable;
+import javax.persistence.*;
+
+
+/**
+ * The persistent class for the tarea database table.
+ *
+ */
+@Entity
+public class Tarea implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @Id
+ @Column(name="\"idTarea\"")
+ private Integer idTarea;
+
+ @Column(name="\"idCurso\"")
+ private Integer idCurso;
+
+ @Column(name="\"idTema\"")
+ private Integer idTema;
+
+ public Tarea() {
+ }
+
+ public Integer getIdTarea() {
+ return this.idTarea;
+ }
+
+ public void setIdTarea(Integer idTarea) {
+ this.idTarea = idTarea;
+ }
+
+ public Integer getIdCurso() {
+ return this.idCurso;
+ }
+
+ public void setIdCurso(Integer idCurso) {
+ this.idCurso = idCurso;
+ }
+
+ public Integer getIdTema() {
+ return this.idTema;
+ }
+
+ public void setIdTema(Integer idTema) {
+ this.idTema = idTema;
+ }
+
+} \ No newline at end of file