PayrollChange
The PayrollChange entity, mapped to the payroll_changes table.
| Table | payroll_changes |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 6 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayrollChange.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
changeId | Integer | change_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 | — |
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 |
|---|---|---|---|---|
payroll | @ManyToOne | Payroll | payroll_id | Yes |
Neighbourhood
Repository
PayrollChangeRepository
Declared over PayrollChange with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollChangeRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByPayroll_PayrollIdOrderByModificationDateDesc(Integer payrollId) | List<PayrollChange> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PayrollChange.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| PayrollChangesController | /api/payroll-changes | 1 | Payroll |
| PayrollController | /api/payroll | 8 | Payroll |
| RecognitionAwardController | /api/recognition-awards | 7 | HR |
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/.