Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. package com.everis.microservicio.springbootusuario;
  2.  
  3. import java.time.LocalDate;
  4.  
  5. import javax.persistence.Column;
  6. import javax.persistence.Entity;
  7. import javax.persistence.Id;
  8.  
  9. @Entity
  10. public class Usuario {
  11.  
  12. @Id
  13. private Long id;
  14.  
  15. @Column
  16. private String username;
  17.  
  18. @Column
  19. private String nombre;
  20.  
  21. @Column
  22. private String apellido;
  23.  
  24. @Column(name = "fecha_nacimiento")
  25. private LocalDate fechanacimiento;
  26.  
  27. @Column
  28. private String correo;
  29.  
  30. @Column
  31. private int port;
  32. /**
  33. * @return the id
  34. */
  35. public Long getId() {
  36. return id;
  37. }
  38. /**
  39. * @param id the id to set
  40. */
  41. public void setId(Long id) {
  42. this.id = id;
  43. }
  44. /**
  45. * @return the username
  46. */
  47. public String getUsername() {
  48. return username;
  49. }
  50. /**
  51. * @param username the username to set
  52. */
  53. public void setUsername(String username) {
  54. this.username = username;
  55. }
  56. /**
  57. * @return the nombre
  58. */
  59. public String getNombre() {
  60. return nombre;
  61. }
  62. /**
  63. * @param nombre the nombre to set
  64. */
  65. public void setNombre(String nombre) {
  66. this.nombre = nombre;
  67. }
  68. /**
  69. * @return the apellido
  70. */
  71. public String getApellido() {
  72. return apellido;
  73. }
  74. /**
  75. * @param apellido the apellido to set
  76. */
  77. public void setApellido(String apellido) {
  78. this.apellido = apellido;
  79. }
  80. /**
  81. * @return the fechanacimiento
  82. */
  83. public LocalDate getFechanacimiento() {
  84. return fechanacimiento;
  85. }
  86. /**
  87. * @param fechanacimiento the fechanacimiento to set
  88. */
  89. public void setFechanacimiento(LocalDate fechanacimiento) {
  90. this.fechanacimiento = fechanacimiento;
  91. }
  92. /**
  93. * @return the correo
  94. */
  95. public String getCorreo() {
  96. return correo;
  97. }
  98. /**
  99. * @param correo the correo to set
  100. */
  101. public void setCorreo(String correo) {
  102. this.correo = correo;
  103. }
  104. /**
  105. * @return the port
  106. */
  107. public int getPort() {
  108. return port;
  109. }
  110. /**
  111. * @param port the port to set
  112. */
  113. public void setPort(int port) {
  114. this.port = port;
  115. }
  116.  
  117.  
  118.  
  119. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement