Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sprachschulsystem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Pokorný
Sprachschulsystem
Commits
a3e16263
There was an error fetching the commit references. Please try again later.
Commit
a3e16263
authored
2 years ago
by
Dominika Zemanovičová
Committed by
Martin Gargalovič
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add AnswerMapper
parent
23b5760b
No related branches found
No related tags found
3 merge requests
!31
M2
,
!28
M2 user
,
!27
Draft: M2 user
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/module-exercise/src/main/java/org/fuseri/moduleexercise/answer/AnswerMapper.java
+29
-0
29 additions, 0 deletions
...n/java/org/fuseri/moduleexercise/answer/AnswerMapper.java
with
29 additions
and
0 deletions
application/module-exercise/src/main/java/org/fuseri/moduleexercise/answer/AnswerMapper.java
0 → 100644
+
29
−
0
View file @
a3e16263
package
org.fuseri.moduleexercise.answer
;
import
org.fuseri.model.dto.exercise.AnswerCreateDto
;
import
org.fuseri.model.dto.exercise.AnswerDto
;
import
org.fuseri.model.dto.exercise.AnswerInQuestionCreateDto
;
import
org.fuseri.moduleexercise.common.DomainMapper
;
import
org.mapstruct.Mapper
;
/**
* Mapper between Answers and their corresponding DTOs
*/
@Mapper
public
interface
AnswerMapper
extends
DomainMapper
<
Answer
,
AnswerDto
>
{
/**
* Convert DTO of type AnswerCreateDto to Answer
*
* @param dto DTO to be converted
* @return corresponding Answer entity created from DTO
*/
Answer
fromCreateDto
(
AnswerCreateDto
dto
);
/**
* Convert DTO of type AnswerInQuestionCreateDto to Answer
* @param dto DTO to be converted
* @return corresponding Answer entity created from DTO
*/
Answer
fromCreateDto
(
AnswerInQuestionCreateDto
dto
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment