diff options
Diffstat (limited to 'EjercitarJPA/src/model/Curso.java')
-rw-r--r-- | EjercitarJPA/src/model/Curso.java | 52 |
1 files changed, 52 insertions, 0 deletions
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 |