Skip to content

Commit 713b2d6

Browse files
author
Hattinger04
committed
adding ideas
1 parent 4e5627d commit 713b2d6

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package io.github.Hattinger04.group;
2+
3+
import lombok.Getter;
4+
import lombok.Setter;
5+
6+
public class Exercise {
7+
8+
@Getter @Setter
9+
private int id; // TODO: unique
10+
11+
@Getter @Setter
12+
private String name; // TODO: unique
13+
14+
@Getter
15+
private String text;
16+
17+
public void setText(String text) {
18+
this.text = text;
19+
// TODO: if already published: publish changes to all students
20+
}
21+
22+
// does exercise refer to student or group?
23+
}

src/main/java/io/github/Hattinger04/group/Group.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
public class Group {
1010

1111
@Getter @Setter
12-
private String name;
12+
private int id; // TODO: unique
13+
14+
@Getter @Setter
15+
private String name; // TODO: unique
1316

1417
@Getter @Setter
1518
private List<User> teacher; // in case of multiple teacher in one group

0 commit comments

Comments
 (0)