Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package entities;
  7.  
  8. import java.io.Serializable;
  9. import javax.persistence.Entity;
  10. import javax.persistence.Id;
  11.  
  12. /**
  13. *
  14. * @author rodri
  15. */
  16. @Entity
  17. public class Student implements Serializable {
  18.  
  19. @Id
  20. private String username;
  21. private String password;
  22. private String name;
  23. private String email;
  24.  
  25. public Student() {
  26. }
  27.  
  28. public Student(String username, String password, String name, String email) {
  29. this.username = username;
  30. this.password = password;
  31. this.name = name;
  32. this.email = email;
  33. }
  34.  
  35. public String getUsername() {
  36. return username;
  37. }
  38.  
  39. public void setUsername(String username) {
  40. this.username = username;
  41. }
  42.  
  43. public String getPassword() {
  44. return password;
  45. }
  46.  
  47. public String getEmail() {
  48. return email;
  49. }
  50.  
  51. public String getName() {
  52. return name;
  53. }
  54.  
  55. public void setEmail(String email) {
  56. this.email = email;
  57. }
  58.  
  59. public void setName(String name) {
  60. this.name = name;
  61. }
  62.  
  63. public void setPassword(String password) {
  64. this.password = password;
  65. }
  66.  
  67.  
  68.  
  69.  
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement