Skip to content

Commit

Permalink
Merge pull request CSC207-UofT#31 from CSC207-UofT/aksh-database
Browse files Browse the repository at this point in the history
Add default constructors
  • Loading branch information
tonyhu-x committed Nov 15, 2021
2 parents 9d7d07d + 42ee6e1 commit d1e4c5a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/amigo/control/AmigoApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@SpringBootApplication(scanBasePackages = {"com.amigo.control", "com.amigo.course"})
@EntityScan(basePackages = {"com.amigo.course"})
@EnableJpaRepositories("com.amigo.course")
@EnableJpaRepositories(basePackages = {"com.amigo.course"})
public class AmigoApplication {

public static void main(String[] args) {
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/java/com/amigo/course/Course.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public class Course {
private String lecture;
private String tutorial;

/**
* Creates a course using the default constructor
*/
public Course() {}

/**
* Creates a course with only the courseCode
*/
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/java/com/amigo/user/Profile.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public class Profile {
private HashSet<Course> courses;
private String contactInfo;

/**
* Creates a profile using the default constructor
*/
public Profile() {}

/**
* Creates a profile containing a name, year of study, program of study, courses and contact info.
*/
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/java/com/amigo/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public class User {
private List<Match> currentMatches;
// private matchHistory matchHistory; not used for phase 0

/**
* Creates a user using the default constructor
*/
public User() {}

/**
* Creates a user containing an id, a profile and an empty list of current matches.
*/
Expand Down

0 comments on commit d1e4c5a

Please sign in to comment.