Created
June 19, 2009 05:37
-
-
Save necronet/132437 to your computer and use it in GitHub Desktop.
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
1. package org.jpa; | |
2. import java.io.Serializable; | |
3. import javax.persistence.Column; | |
4. import javax.persistence.Entity; | |
5. import javax.persistence.Id; | |
6. import javax.persistence.Table; | |
7. @Entity | |
8. @Table(schema="sistema", name = "estudiante") | |
9. public class Estudiante implements Serializable { | |
10. @Id | |
11. @Column(name="id_estudiante") | |
12. private int idEstudiante; | |
13. private String nombre; | |
14. private String apellidos; | |
15. private static final long serialVersionUID = 1L; | |
16. public Estudiante() { | |
17. super(); | |
18. } | |
19. public int getIdEstudiante() { | |
20. return this.idEstudiante; | |
21. } | |
22. public void setIdEstudiante(int idEstudiante) { | |
23. this.idEstudiante = idEstudiante; | |
24. } | |
25. public String getNombre() { | |
26. return this.nombre; | |
27. } | |
28. public void setNombre(String nombre) { | |
29. this.nombre = nombre; | |
30. } | |
31. public String getApellidos() { | |
32. return this.apellidos; | |
33. } | |
34. public void setApellidos(String apellidos) { | |
35. this.apellidos = apellidos; | |
36. } | |
37. } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment