Skip to main content

PayrollSettingsSnapshot

One payroll setting as it was when a run's payslips were generated (see V125).

Tablepayroll_settings_snapshot
Tenant-scopedYes — extends TenantOwned
Columns4
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/PayrollSettingsSnapshot.java

Columns​

FieldTypeColumnNullNotes
snapshotIdIntegersnapshot_id—primary key, generated
payrollIdIntegerpayroll_id——
fieldNameStringfield_name——
fieldValueStringfield_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.

Repository​

PayrollSettingsSnapshotRepository​

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

MethodReturnsNotes
findAllByPayrollIdOrderBySnapshotIdAsc(Integer payrollId)List<PayrollSettingsSnapshot>derived
deleteAllForPayroll(@Param("payrollId") Integer payrollId)voidexplicit @Query, modifying

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