sanger96 / Happenings_Team-5_UTD_Senior_Design_Project

UTD Senior Design Project; Group Members: Gaurav Sanger, Jonathan Lam, Robert Dohm, Landin Kasti, Charles Eaton
3 stars 0 forks source link

Create an Event method for creating Event given all necessary fields #66

Closed LKASTI closed 3 months ago

LKASTI commented 3 months ago

Resources: https://www.baeldung.com/java-dto-pattern

The front-end form should contain the following information when an event is being sent to the back-end:

DTOs: EventCreationDTO

An outside example of a DTO in use:

Visual representation of DTO

LKASTI commented 3 months ago

Decided to not use DTO pattern, and created a method that takes all needed fields for creating an Event, including fields for an Appointment and Location. All fields are sent as request parameters, in which they are converted into objects in the event service file. Each object is created and flushed to the database in order to preserve relationships amongst entities.

LKASTI commented 3 months ago

This is method seems to be working, although not all test cases were checked. Currently, it is being changed by Jonathan to reflect modularization changes.

LKASTI commented 3 months ago

Looks like I forgot to add the description field to the method parameter list. This will need to be added.

LKASTI commented 3 months ago

tracked in #85