Skip to main content

PayrollTransaction

The PayrollTransaction entity, mapped to the payroll_transactions table.

Tablepayroll_transactions
Tenant-scopedYes — extends TenantOwned
Columns5
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/PayrollTransaction.java

Columns​

FieldTypeColumnNullNotes
transactionIdIntegertransaction_id—primary key, generated
transactionTypeStringtransaction_type——
transactionAmountBigDecimaltransaction_amount——
transactionDateLocalDatetransaction_date——
descriptionStringdescriptionYes—

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
payslip@ManyToOnePayslippayslip_idYes

Neighbourhood​

Repository​

PayrollTransactionRepository​

Declared over PayrollTransaction with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollTransactionRepository.java

MethodReturnsNotes
findWithDetailsByTransactionId(Integer transactionId)Optional<PayrollTransaction>derived

Reached by​

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

ControllerBase pathEndpointsModule
PayrollTransactionController/api/payroll-transactions6Payroll

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