Description This project "Soundgood Music School" on KTH-Data Storage Paradigms(IV1351). The purpose is to facilitate information handling and business transactions for the Soundgood music school company, by developing a database which handles all the school's data and also an application that can handle some of the transactions.
This tools was helpeing to built this project.You can download them from here:
We used Eclipse
to build a Maven-project
and connected a database with JAVA using JDBC.
You need to add the
JDBC
file to your project onEclipse
.You can download them from here:
PostgreSQL JDBC Driver Postgresql JDBC
- Clone this git repository.
git clone https://github.com/mhaao/Soundgood-Music-School.git
- Change to the newly created directory cd soundgood-music-school.
cd "soundgood-music-school"
- Change the url to match your database. You can find that in
<SchoolDAO>
- Change the url to match your database. You can find that in
- Create a database that can be reached with postgres
database.sql
andinsert.sql
. That all tables and data you need to a database called soundgood-music-school. - Build the project with the command
mvn install
- Run the program with the command
mvn exec:java
help
displays all commands.list
lists all instruments that are available to rent. The listing shall show brand and price for each listed instrument.ensembles
List all ensembles held during the next week. For each ensemble tell whether it's full booked.rent
Shows the all rented and terminate instruments.rent <student_id> <instrument_id>
Student can rent specify instrument. Remember that a student is not allowed to rent more than two instruments at the same time.terminate <student_id> <instrument_id>
Terminate an ongoing rental.quit
quits the application.
- Murtadha Alobaidi mhaao@kth.se
- Abdullah Trabulsiah abdtra@kth.se