Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.everis.microservicio.springbootusuario;
- import java.time.LocalDate;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Id;
- @Entity
- public class Usuario {
- @Id
- private Long id;
- @Column
- private String username;
- @Column
- private String nombre;
- @Column
- private String apellido;
- @Column(name = "fecha_nacimiento")
- private LocalDate fechanacimiento;
- @Column
- private String correo;
- @Column
- private int port;
- /**
- * @return the id
- */
- public Long getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(Long id) {
- this.id = id;
- }
- /**
- * @return the username
- */
- public String getUsername() {
- return username;
- }
- /**
- * @param username the username to set
- */
- public void setUsername(String username) {
- this.username = username;
- }
- /**
- * @return the nombre
- */
- public String getNombre() {
- return nombre;
- }
- /**
- * @param nombre the nombre to set
- */
- public void setNombre(String nombre) {
- this.nombre = nombre;
- }
- /**
- * @return the apellido
- */
- public String getApellido() {
- return apellido;
- }
- /**
- * @param apellido the apellido to set
- */
- public void setApellido(String apellido) {
- this.apellido = apellido;
- }
- /**
- * @return the fechanacimiento
- */
- public LocalDate getFechanacimiento() {
- return fechanacimiento;
- }
- /**
- * @param fechanacimiento the fechanacimiento to set
- */
- public void setFechanacimiento(LocalDate fechanacimiento) {
- this.fechanacimiento = fechanacimiento;
- }
- /**
- * @return the correo
- */
- public String getCorreo() {
- return correo;
- }
- /**
- * @param correo the correo to set
- */
- public void setCorreo(String correo) {
- this.correo = correo;
- }
- /**
- * @return the port
- */
- public int getPort() {
- return port;
- }
- /**
- * @param port the port to set
- */
- public void setPort(int port) {
- this.port = port;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement