feat(Usuario): creado Usuario JPA para persistencia en BBDD

parent 13c31820
...@@ -7,9 +7,9 @@ import lombok.*; ...@@ -7,9 +7,9 @@ import lombok.*;
@NoArgsConstructor @NoArgsConstructor
public class Usuario { public class Usuario {
private Long id; private int id;
private String nombre; private String nombre;
private String apellido; private String apellidos;
private String email; private String email;
private String password; private String password;
......
package com.example.apprecetas.infrastructure.repository.jpa;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;
@Entity
@Table(name = "usuarios")
@Getter
@Setter
public class UsuarioJpa {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id_usuario")
private int id;
@Column(name = "nombre")
private String nombre;
@Column(name = "apellidos")
private String apellidos;
@Column(name = "email")
private String email;
@Column(name = "password")
private String password;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment