This PR creates the Assignment and Comment objects, and their corresponding servlets. It also modifies the Club object to contain a list of Assignments rather than posts. The Group object no longer contains a list of posts, as this has been moved to be a Community-only feature. Additionally, the announcement field was removed from these objects. For clubs, all discussion will take place in the form of Comments underneath Assignments. The appropriate testing is updated.
Additionally, now that Club and Communities objects extend the Group class, the use of getDeclaredFields on the given class was insufficient as it does not get fields of super classes. This PR also updates the Utility class to get the fields of the superclass as well, solving this problem.
This PR creates the Assignment and Comment objects, and their corresponding servlets. It also modifies the Club object to contain a list of Assignments rather than posts. The Group object no longer contains a list of posts, as this has been moved to be a Community-only feature. Additionally, the announcement field was removed from these objects. For clubs, all discussion will take place in the form of Comments underneath Assignments. The appropriate testing is updated.
Additionally, now that Club and Communities objects extend the Group class, the use of getDeclaredFields on the given class was insufficient as it does not get fields of super classes. This PR also updates the Utility class to get the fields of the superclass as well, solving this problem.