Commit eb64758e by Rubén Ramírez

feat: [Repositorio]: Creada la clase Repositorio con los atributos básicos

parent 77f6fdaf
package com.ujaen.tfg.mangaffinity.entidades;
import jakarta.persistence.*;
import lombok.*;
import jakarta.validation.constraints.NotBlank;
@Entity
@Table(name = "repositorios")
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Repositorio {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@NotBlank
@Column(nullable = false)
private String categoria;
// Constructor con parámetros
public Repositorio(String categoria) {
this.categoria = categoria;
}
}
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