Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Rubén Ramírez
/
MangAffinity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1b4a414
authored
Feb 23, 2025
by
Rubén Ramírez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: [DTORecurso]: Modificado el dto para tener también géneros
parent
52982c49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
src/main/java/com/ujaen/tfg/mangaffinity/entidades/Genero.java
src/main/java/com/ujaen/tfg/mangaffinity/rest/DTO/DTORecurso.java
src/main/java/com/ujaen/tfg/mangaffinity/entidades/Genero.java
View file @
e1b4a414
package
com
.
ujaen
.
tfg
.
mangaffinity
.
entidades
;
import
lombok.Getter
;
@Getter
public
enum
Genero
{
ACCION
,
AVENTURA
,
...
...
src/main/java/com/ujaen/tfg/mangaffinity/rest/DTO/DTORecurso.java
View file @
e1b4a414
package
com
.
ujaen
.
tfg
.
mangaffinity
.
rest
.
DTO
;
import
com.ujaen.tfg.mangaffinity.entidades.Genero
;
import
jakarta.validation.constraints.NotBlank
;
import
jakarta.validation.constraints.NotNull
;
import
lombok.AllArgsConstructor
;
...
...
@@ -7,6 +8,7 @@ import lombok.Getter;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
java.time.LocalDate
;
import
java.util.Set
;
@Getter
@Setter
...
...
@@ -25,4 +27,6 @@ public class DTORecurso {
@NotBlank
private
String
autor
;
private
Set
<
Genero
>
generos
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment