Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Database credentials

The JDBC URL, user and password come from .env in the project root (see .env.example). Copy it once and edit the values:

Copy-Item.env.example .env

VS Code

  1. File > Open Folder... -> select this folder.
  2. Install the Extension Pack for Java if prompted.
  3. Open Main.java (not the files in reports) and click Run Java.

PowerShell (alternative)

$jar = 'lib\mysql-connector-j-9.1.0.jar'
javac -cp $jar *.java reports\*.java
java  -cp ".;$jar" Main

Layout

├── Main.java                  main(), login loop, report menu, role lookup
├── reports/
│   ├── Reports.java           dispatcher: picks the child report class
│   ├── Report.java            abstract base (connection, HR gate, date prompt, run())
│   ├── PayStubReport.java                report 1
│   ├── PayTotalReport.java               abstract parent for reports 2 & 3
│   ├── PayByTitleReport.java             report 2
│   ├── PayByDivisionReport.java          report 3
│   ├── NewHiresReport.java               report 4
│   ├── EmployeesByTitleReport.java       report 5
│   ├── Employee.java
│   ├── PayStub.java
│   └── PayTotal.java
├── lib/mysql-connector-j-9.1.0.jar
├── .vscode/settings.json
└── .env / .env.example

From the main menu type reports to sign in with an employee ID and run a report. Your original login keyword and its stub are unchanged.

Reports

  1. Employee pay statement history — General Employee
  2. Total pay for month by job title — HR Admin
  3. Total pay for month by division — HR Admin
  4. New employee hires within a date range — All Employees
  5. All employees grouped by job title — HR Admin

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages