Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Open sidebar
Kamal Agrawal
StateStreetProject-dev
Commits
22440988
Commit
22440988
authored
Jun 18, 2021
by
sakshi gupta
Browse files
reverting created date change
parent
b997fde5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
src/main/java/com/statestreet/model/QuizResult.java
src/main/java/com/statestreet/model/QuizResult.java
+13
-17
src/main/java/com/statestreet/service/QuizResultServiceImpl.java
...n/java/com/statestreet/service/QuizResultServiceImpl.java
+3
-0
No files found.
src/main/java/com/statestreet/model/QuizResult.java
View file @
22440988
...
...
@@ -30,9 +30,10 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Document
(
collection
=
"Quiz_Result"
)
public
class
QuizResult
implements
Persistable
<
String
>
{
public
class
QuizResult
{
@Id
private
long
quizId
;
@CreatedDate
@JsonFormat
(
pattern
=
"yyyy-MMM-dd"
)
private
Date
quizDate
;
private
boolean
hasDiscriptiveQuestion
;
...
...
@@ -50,20 +51,15 @@ public class QuizResult implements Persistable<String>{
@NotNull
private
QuestionSet
questionSet
;
@CreatedDate
private
LocalDateTime
createdDate
;
@Version
private
Long
version
;
@Override
public
String
getId
()
{
// TODO Auto-generated method stub
return
Long
.
toString
(
quizId
);
}
@Override
public
boolean
isNew
()
{
// TODO Auto-generated method stub
return
createdDate
==
null
;
}
/*
* @CreatedDate private LocalDateTime createdDate;
*
* @Version private Long version;
*
* @Override public String getId() { // TODO Auto-generated method stub return
* Long.toString(quizId); }
*
* @Override public boolean isNew() { // TODO Auto-generated method stub return
* createdDate == null; }
*/
}
src/main/java/com/statestreet/service/QuizResultServiceImpl.java
View file @
22440988
...
...
@@ -303,7 +303,10 @@ public class QuizResultServiceImpl implements QuizResultService {
}
objQuizResult
.
setDiscriptiveQuestion
(
discriptiveCount
-
1
);
quizResultList
.
add
(
objQuizResult
);
log
.
debug
(
"quiz obj::"
+
objQuizResult
);
}
//log.debug("quiz obj::"+quizResultRepo.insert(quizResultList));
if
(
quizResultRepo
.
saveAll
(
quizResultList
)!=
null
)
{
log
.
debug
(
"Response returned from QuizResultServiceImpl -- saveDiscriptiveQuesResult method, result={}"
,
CommonUtils
.
SUCCESS_RESULT
);
...
...
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