Skip to content

Commit

Permalink
Reverse of removed method
Browse files Browse the repository at this point in the history
  • Loading branch information
annaojdowska committed Dec 2, 2018
1 parent 35bdefd commit 4ad74cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kiohub/src/main/java/pg/eti/kiohub/entity/model/Semester.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public class Semester {
@JsonBackReference
private List<Project> projects = new ArrayList<>();

public void addProject(Project project) {
projects.add(project);
project.getSemesters().add(this);
}

public Semester(String name) {
this.name = name;
}
Expand Down

0 comments on commit 4ad74cb

Please sign in to comment.