PhHoliday
Philippine holiday calendar entry.
| Table | ph_holidays |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 7 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/PhHoliday.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
holidayId | Integer | holiday_id | — | primary key, generated |
holidayDate | LocalDate | holiday_date | — | — |
holidayName | String | holiday_name | — | — |
holidayType | String | holiday_type | — | — |
createdDate | LocalDateTime | created_date | Yes | — |
lastModifiedBy | String | last_modified_by | Yes | — |
lastModifiedDate | LocalDateTime | last_modified_date | Yes | — |
Plus tenant_id, inherited from TenantOwned. Hibernate stamps it on insert and adds where tenant_id = ? to every query, so it is never written or read by application code.
Repository
PhHolidayRepository
Declared over PhHoliday with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PhHolidayRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByHolidayDateBetweenOrderByHolidayDateAsc(LocalDate from, LocalDate to) | List<PhHoliday> | derived |
existsByHolidayDateAndHolidayName(LocalDate holidayDate, String holidayName) | boolean | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PhHoliday.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| LeaveRequestController | /api/leave-requests | 7 | HR |
| PayrollController | /api/payroll | 8 | Payroll |
| PayrollSettingsController | /api/payroll-settings | 4 | Payroll |
| PhHolidayController | /api/holidays | 5 | HR |
| PublicSignupController | /api/public/signup | 2 | Billing & Platform |
| RecognitionAwardController | /api/recognition-awards | 7 | HR |
| TenantAdminController | /api/admin/tenants | 7 | Billing & Platform |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.