STEP-Pod-Capstone-Project / Capstone-Project

https://book-book-app.appspot.com
Apache License 2.0
4 stars 0 forks source link

Assignments and Comments: objects and servlets #58

Closed steven-solar closed 4 years ago

steven-solar commented 4 years ago

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.