Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Franz Reischl
tomcat-miniREST
Commits
1689b628
Commit
1689b628
authored
Dec 30, 2018
by
Michael Schimpelsberger
Browse files
Erste Testversion der API ohne Datenpersistierung
parent
560b521b
Changes
3
Show whitespace changes
Inline
Side-by-side
src/main/java/university/at/jku/ce/model/Student.java
View file @
1689b628
...
...
@@ -18,6 +18,11 @@ public class Student {
public
Student
()
{};
public
Student
(
String
firstName
,
String
lastName
)
{
this
.
firstName
=
firstName
;
this
.
lastName
=
lastName
;
}
public
Student
(
int
matrNr
,
String
firstName
,
String
lastName
)
{
this
.
matrNr
=
matrNr
;
this
.
firstName
=
firstName
;
...
...
src/main/java/university/at/jku/ce/model/Study.java
View file @
1689b628
...
...
@@ -17,6 +17,11 @@ public class Study {
public
Study
()
{}
public
Study
(
String
name
,
Map
<
Long
,
Subject
>
subjects
)
{
this
.
name
=
name
;
this
.
subjects
=
subjects
;
}
public
Study
(
long
studyId
,
String
name
,
Map
<
Long
,
Subject
>
subjects
)
{
this
.
name
=
name
;
this
.
studyId
=
studyId
;
...
...
src/main/java/university/at/jku/ce/model/Subject.java
View file @
1689b628
...
...
@@ -10,6 +10,11 @@ public class Subject {
public
Subject
()
{};
public
Subject
(
String
name
,
String
info
)
{
this
.
name
=
name
;
this
.
info
=
info
;
}
public
Subject
(
long
id
,
String
name
,
String
info
)
{
this
.
id
=
id
;
this
.
name
=
name
;
...
...
Write
Preview
Supports
Markdown
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