Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-adaptive-training
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
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
MUNI-KYPO-CRP
backend-java
kypo-adaptive-training
Commits
d670f313
Commit
d670f313
authored
4 years ago
by
Jan Tymel
Browse files
Options
Downloads
Patches
Plain Diff
Add two missing attributes to BaseLevel
parent
a9d30c3e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/example/demo/domain/BaseLevel.java
+28
-2
28 additions, 2 deletions
src/main/java/com/example/demo/domain/BaseLevel.java
src/main/java/com/example/demo/dto/BaseLevelDto.java
+18
-0
18 additions, 0 deletions
src/main/java/com/example/demo/dto/BaseLevelDto.java
with
46 additions
and
2 deletions
src/main/java/com/example/demo/domain/BaseLevel.java
+
28
−
2
View file @
d670f313
...
@@ -24,6 +24,8 @@ public abstract class BaseLevel {
...
@@ -24,6 +24,8 @@ public abstract class BaseLevel {
private
String
title
;
private
String
title
;
private
String
estimatedDuration
;
private
String
estimatedDuration
;
private
Long
maxScore
;
private
Long
maxScore
;
private
Integer
maxCommands
;
private
Integer
maxWrongFlags
;
@Column
(
name
=
"order_in_training_definition"
,
nullable
=
false
)
@Column
(
name
=
"order_in_training_definition"
,
nullable
=
false
)
private
Integer
order
;
private
Integer
order
;
...
@@ -89,9 +91,33 @@ public abstract class BaseLevel {
...
@@ -89,9 +91,33 @@ public abstract class BaseLevel {
this
.
trainingDefinitionId
=
trainingDefinition
;
this
.
trainingDefinitionId
=
trainingDefinition
;
}
}
public
Integer
getMaxCommands
()
{
return
maxCommands
;
}
public
void
setMaxCommands
(
Integer
maxCommands
)
{
this
.
maxCommands
=
maxCommands
;
}
public
Integer
getMaxWrongFlags
()
{
return
maxWrongFlags
;
}
public
void
setMaxWrongFlags
(
Integer
maxWrongFlags
)
{
this
.
maxWrongFlags
=
maxWrongFlags
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"BaseLevel{"
+
"title='"
+
title
+
'\''
+
", estimatedDuration='"
+
estimatedDuration
+
'\''
+
return
"BaseLevel{"
+
", maxScore="
+
maxScore
+
'}'
;
"id="
+
id
+
", title='"
+
title
+
'\''
+
", estimatedDuration='"
+
estimatedDuration
+
'\''
+
", maxScore="
+
maxScore
+
", maxCommands="
+
maxCommands
+
", maxWrongFlags="
+
maxWrongFlags
+
", order="
+
order
+
", trainingDefinitionId="
+
trainingDefinitionId
+
'}'
;
}
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/com/example/demo/dto/BaseLevelDto.java
+
18
−
0
View file @
d670f313
...
@@ -12,6 +12,8 @@ public abstract class BaseLevelDto implements Serializable {
...
@@ -12,6 +12,8 @@ public abstract class BaseLevelDto implements Serializable {
private
String
estimatedDuration
;
private
String
estimatedDuration
;
private
Long
maxScore
;
private
Long
maxScore
;
private
LevelType
type
;
private
LevelType
type
;
private
Integer
maxCommands
;
private
Integer
maxWrongFlags
;
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
...
@@ -61,6 +63,22 @@ public abstract class BaseLevelDto implements Serializable {
...
@@ -61,6 +63,22 @@ public abstract class BaseLevelDto implements Serializable {
this
.
type
=
type
;
this
.
type
=
type
;
}
}
public
Integer
getMaxCommands
()
{
return
maxCommands
;
}
public
void
setMaxCommands
(
Integer
maxCommands
)
{
this
.
maxCommands
=
maxCommands
;
}
public
Integer
getMaxWrongFlags
()
{
return
maxWrongFlags
;
}
public
void
setMaxWrongFlags
(
Integer
maxWrongFlags
)
{
this
.
maxWrongFlags
=
maxWrongFlags
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"BaseLevelDto{"
+
"id="
+
id
+
", title='"
+
title
+
'\''
+
", order="
+
order
+
return
"BaseLevelDto{"
+
"id="
+
id
+
", title='"
+
title
+
'\''
+
", order="
+
order
+
...
...
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