Skip to content

MashAliK/COMP3005A3Q1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

COMP3005A3Q1

Youtube Demo: https://youtu.be/XoF7UQUOoXI

The application is used by first creating a Postegres table called 'A3Q1' and then updating your username and password for pdAdmin in COMP3005A3Q1/src/main/resources/hibernate.cfg.xml.

Then the DatabaseApp.java file can be run. There are four CRUD operations that can be performed by calling the following functions:

(1) getAllStudents() - prints every record currently in the table (2) addStudent(firstName, lastName, email, enrollmentDate) - adds the students to the records with the attributes that were passed into the function. Note: for the date use the asDate helper function e.g asDate("2024-01-01") (3) updateStudentEmail(id, email) - pass in the id and the new email for the student you want to update (4) deleteStudent(id) - pass in the id of a student you want to delete

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages