Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Khalid Ali
bookshare-backend
Commits
178074ea
Commit
178074ea
authored
Dec 17, 2018
by
Khalid Ali
Browse files
Now, DTO to Entity fixed
parent
18967e90
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/gmu/bookshare/model/ListingDto.java
View file @
178074ea
...
...
@@ -13,7 +13,7 @@ import java.util.Date;
@Setter
public
class
ListingDto
{
private
static
final
SimpleDateFormat
dateFormat
private
final
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
);
private
Long
id
;
...
...
src/main/java/com/gmu/bookshare/web/BookshareApiController.java
View file @
178074ea
...
...
@@ -69,7 +69,7 @@ public class BookshareApiController {
private
ListingEntity
convertToEntity
(
ListingDto
listingDto
)
throws
ParseException
{
ListingEntity
post
=
modelMapper
.
map
(
listingDto
,
ListingEntity
.
class
);
post
.
setCreateDate
(
L
istingDto
.
getCreateDateConverted
());
post
.
setCreateDate
(
l
istingDto
.
getCreateDateConverted
());
return
post
;
}
}
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