ReimbursementTransaction
The ReimbursementTransaction entity, mapped to the reimbursement_transactions table.
| Table | reimbursement_transactions |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 6 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/ReimbursementTransaction.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
transactionId | Integer | transaction_id | — | primary key, generated |
transactionDate | LocalDate | transaction_date | — | — |
amount | BigDecimal | amount | — | — |
paidTo | String | paid_to | — | — |
paymentMethod | String | payment_method | Yes | — |
details | String | 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 |
|---|---|---|---|---|
request | @ManyToOne | ReimbursementRequest | request_id | Yes |
Neighbourhood
Repository
ReimbursementTransactionRepository
Declared over ReimbursementTransaction with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/ReimbursementTransactionRepository.java
| Method | Returns | Notes |
|---|---|---|
findWithDetailsByTransactionId(Integer transactionId) | Optional<ReimbursementTransaction> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over ReimbursementTransaction.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| ReimbursementTransactionController | /api/reimbursement-transactions | 6 | Payroll |
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/.