Open JoshThinh opened 1 week ago
Assignment | Points | Grade | Evidence |
---|---|---|---|
Tri 1-3 Review Ticket | 3 | 2.7 | |
Sprint 3 Team Issue(s)/Plan | 2 | 1.83 | link to project plan link to feedback |
Beginning-2-End Contribution | 2 | 1.8 | |
N@tM Team Presentation | 2 | 1.81 | |
Live Review Indi Demo | 1 | .91 | |
Total | 10 |
Skill | Points | Grade | Evidence |
---|---|---|---|
Work Habits (Analytics) | 1 | 0.9 | |
Evidence of Role in Team | 1 | 0.9 | |
Function / Purpose Design | 1 | 0.9 | The overall function of the my project as a whole with my team is to provide basically a AI that will help the teacher grade code faster while not having to read the code. There are also sub categories within this project such as the popcorn ai generator which will provide not only the teacher but students faster ways to generate popcorn hacks that will be used for the students. I created a QNA where it basically provides students the ability to ask questions about anything related to computer science. Then other students and the teacher have the ability to respond to the student answering their question. The all the comments and questions are stored in the backend database so that everyone will have access to these questions and answers. |
Live Review | 2 | ||
Total | 5 |
Message Pojo Message Entity that stores the question from my website which can have many replies.
Comments(comment): Annotation: @OneToMany(fetch = EAGER) Description: This field defines a one-to-many relationship with the Comments entity. It uses eager fetching to load the roles immediately when a Message entity is loaded.
Constructors Description: Message constructor for the Message class. These include a no-argument constructor and a constructor with all fields. Initializes an array for comments, and set the content.
Id(id): Annotations: @Id, @GeneratedValue, Description: The @Id annotation specifies the entity's identifier (ID).
Content(content) Description: This is the content attribute that stores the question.
Custom Getter for Comments size (getNumberOfComments): Description: This method returns the number of comments in the message.
Initialization Function (init): Description: This static method initializes an array list of Message objects with test data. It is useful for setting up initial data for testing and development purposes.
implements Comparable Description: The Comparable interface and @Override of compareTo method allow objects of Message to use the content field as a key for comparison.
Run Message.java directly To see that Message is truly a Plain Old Java Object you can run the file in isolation. This will output objects according to Lombok toString implementation.
Comment Pojo Comment Entity stores the reply to the Message Entity. There can be many comments stored for a single Message Entity.
Id(id): Annotations: @Id, @GeneratedValue, Description: The @Id annotation specifies the entity's identifier (ID).
Content(content) Description: This is the content attribute that stores the reply.
Message(messsage) Description: This is a reference to the Message associated with the comments. ManyToOne defines many comments to one Message. The Message_id is stored in the comments DB to map with the message Entity.