Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alba María Álvarez
/
AppRecetas
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
edcec524
authored
Aug 31, 2025
by
Alba María Álvarez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat(recipe): añadida variable isFavorite para tener recetas favoritas
parent
1b60da3a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
src/main/java/com/example/apprecetas/recipe/domain/entity/Recipe.java
src/main/java/com/example/apprecetas/recipe/infrastructure/controller/dto/output/RecipeOutputDto.java
src/main/java/com/example/apprecetas/recipe/infrastructure/repository/mongodb/RecipeDocument.java
src/main/java/com/example/apprecetas/recipe/domain/entity/Recipe.java
View file @
edcec524
...
@@ -15,6 +15,7 @@ public class Recipe {
...
@@ -15,6 +15,7 @@ public class Recipe {
private
String
name
;
private
String
name
;
private
String
description
;
private
String
description
;
private
String
picture
;
private
String
picture
;
private
boolean
isFavorite
;
private
Set
<
Ingredient
>
ingredients
;
private
Set
<
Ingredient
>
ingredients
;
private
Set
<
Step
>
steps
;
private
Set
<
Step
>
steps
;
...
...
src/main/java/com/example/apprecetas/recipe/infrastructure/controller/dto/output/RecipeOutputDto.java
View file @
edcec524
...
@@ -17,6 +17,7 @@ public class RecipeOutputDto {
...
@@ -17,6 +17,7 @@ public class RecipeOutputDto {
private
String
name
;
private
String
name
;
private
String
description
;
private
String
description
;
private
String
picture
;
private
String
picture
;
private
boolean
isFavorite
;
private
Set
<
IngredientOutputDto
>
ingredients
;
private
Set
<
IngredientOutputDto
>
ingredients
;
private
Set
<
StepOutputDto
>
steps
;
private
Set
<
StepOutputDto
>
steps
;
...
...
src/main/java/com/example/apprecetas/recipe/infrastructure/repository/mongodb/RecipeDocument.java
View file @
edcec524
...
@@ -22,6 +22,7 @@ public class RecipeDocument {
...
@@ -22,6 +22,7 @@ public class RecipeDocument {
private
String
name
;
private
String
name
;
private
String
description
;
private
String
description
;
private
String
picture
;
private
String
picture
;
private
boolean
isFavorite
;
private
Set
<
IngredientDocument
>
ingredients
=
new
HashSet
<>();
private
Set
<
IngredientDocument
>
ingredients
=
new
HashSet
<>();
private
Set
<
StepDocument
>
steps
=
new
HashSet
<>();
private
Set
<
StepDocument
>
steps
=
new
HashSet
<>();
...
...
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