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