Commit b4820404 by Rubén Ramírez

feat: [Entidades]: Añadidos nuveos géneros y actualizadas algunas anotaciones…

feat: [Entidades]: Añadidos nuveos géneros y actualizadas algunas anotaciones respecto a los atributos
parent 7b569ba7
......@@ -38,7 +38,6 @@ public class Capitulo {
@JoinColumn(name = "recurso_id", nullable = false)
private Recurso recurso;
@Column(nullable = true)
private Boolean activo;
public Capitulo(int numero, String titulo, TipoRecurso tipo, List<FuenteCapitulo> fuentes, Recurso recurso, Boolean activo) {
......
......@@ -4,13 +4,12 @@ import lombok.Getter;
@Getter
public enum Genero {
ACCION,
AVENTURA,
COMEDIA,
DRAMA,
FANTASIA,
HORROR,
CIENCIA_FICCION,
ROMANCE,
DEPORTES
ACCION, AVENTURA, COMEDIA,
DRAMA, FANTASIA, HORROR,
CIENCIA_FICCION, ROMANCE, DEPORTES,
SHONEN, SHOJO, SEINEN,
JOSEI, ISEKAI, MECHA,
PSICOLOGICO, SOBRENATURAL, THRILLER,
HAREM, REVERSE_HAREM, MUSICAL, SLICE_OF_LIFE
}
......@@ -36,11 +36,9 @@ public class Usuario {
@Column(nullable = false)
private String rol;
@OneToOne(mappedBy = "usuario", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private BibliotecaPersonal bibliotecaPersonal;
public Usuario(String email, String nombreUsuario, String contrasenia) {
this.email = email;
this.nombreUsuario = nombreUsuario;
......@@ -48,5 +46,4 @@ public class Usuario {
this.rol = "USUARIO_REGISTRADO";
this.bibliotecaPersonal = new BibliotecaPersonal(this);
}
}
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