PayslipHistory
The PayslipHistory entity, mapped to the payslip_history table.
| Table | payslip_history |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 8 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayslipHistory.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
historyId | Integer | history_id | — | primary key, generated |
modifiedBy | String | modified_by | — | — |
modificationDate | LocalDateTime | modification_date | — | — |
fieldChanged | String | field_changed | — | — |
oldValue | String | old_value | Yes | — |
newValue | String | new_value | Yes | — |
employeeDepartmentId | Integer | employee_department_id | Yes | — |
modifiedFieldDetails | String | modified_field_details | 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.
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
payslip | @ManyToOne | Payslip | payslip_id | Yes |
Neighbourhood
Repository
PayslipHistoryRepository
Declared over PayslipHistory with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayslipHistoryRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByPayslip_PayslipIdOrderByModificationDateDesc(Integer payslipId) | List<PayslipHistory> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PayslipHistory.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| PayrollController | /api/payroll | 8 | Payroll |
| PayslipHistoryController | /api/payslip-history | 1 | Payroll |
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/.