Skip to main content

PayrollChange

The PayrollChange entity, mapped to the payroll_changes table.

Tablepayroll_changes
Tenant-scopedYes — extends TenantOwned
Columns6
Relationships1
Sourcebackend/src/main/java/com/motorph/payroll/model/PayrollChange.java

Columns​

FieldTypeColumnNullNotes
changeIdIntegerchange_id—primary key, generated
modifiedByStringmodified_by——
modificationDateLocalDateTimemodification_date——
fieldChangedStringfield_changed——
oldValueStringold_valueYes—
newValueStringnew_valueYes—

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​

FieldKindTargetJoin columnRequired
payroll@ManyToOnePayrollpayroll_idYes

Neighbourhood​

Repository​

PayrollChangeRepository​

Declared over PayrollChange with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollChangeRepository.java

MethodReturnsNotes
findAllByPayroll_PayrollIdOrderByModificationDateDesc(Integer payrollId)List<PayrollChange>derived

Reached by​

These controllers hold — directly or through a service they depend on — a repository over PayrollChange.

ControllerBase pathEndpointsModule
DemoDataController/api/system-admin/demo-data3Billing & Platform
PayrollChangesController/api/payroll-changes1Payroll
PayrollController/api/payroll8Payroll
RecognitionAwardController/api/recognition-awards7HR

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/.