Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Librador
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
Librador
Merge requests
!19
Add customization for the ModelMapper
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Add customization for the ModelMapper
enable-modelmapper-customization
into
development
Overview
0
Commits
1
Pipelines
3
Changes
5
Merged
Add customization for the ModelMapper
Chris Lemaire
requested to merge
enable-modelmapper-customization
into
development
May 11, 2020
Overview
0
Commits
1
Pipelines
3
Changes
5
The ModelMapper might need to be customized to disallow non-strict matchings of names.
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
6af8d3c6
1 commit,
May 11, 2020
5 files
+
26
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
src/main/java/nl/tudelft/librador/dto/create/Create.java
+
2
−
1
View file @ 6af8d3c6
Edit in single-file editor
Open in Web IDE
Show full file
@@ -33,7 +33,8 @@ public abstract class Create<D> extends GenericCreate<D> {
throw
new
CreateException
(
errors
);
}
D
data
=
new
ModelMapper
().
map
(
this
,
clazz
());
ModelMapper
mapper
=
createMapper
();
D
data
=
mapper
.
map
(
this
,
clazz
());
postApply
(
data
);
return
data
;
Loading