Skip to main content

ReimbursementRequest

The ReimbursementRequest entity, mapped to the reimbursement_requests table.

Tablereimbursement_requests
Tenant-scopedYes — extends TenantOwned
Columns7
Relationships3
Sourcebackend/src/main/java/com/motorph/payroll/model/ReimbursementRequest.java

Columns​

FieldTypeColumnNullNotes
requestIdIntegerrequest_id—primary key, generated
requestDateLocalDaterequest_date——
amountBigDecimalamount——
descriptionStringdescriptionYes—
statusStringstatus——
approvedDateLocalDateTimeapproved_dateYes—
processedDateLocalDateTimeprocessed_dateYes—

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
employee@ManyToOneEmployeeemployee_numberYes
approvedBy@ManyToOneEmployeeapproved_by—
processedBy@ManyToOneEmployeeprocessed_by—

Referenced by​

EntityFieldKind
ReimbursementTransactionrequest@ManyToOne

Neighbourhood​

Repository​

ReimbursementRequestRepository​

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

MethodReturnsNotes
findWithDetailsByRequestId(Integer requestId)Optional<ReimbursementRequest>derived
findAllByEmployee_EmployeeNumberOrderByRequestDateDesc(Integer employeeId)List<ReimbursementRequest>derived

Reached by​

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

ControllerBase pathEndpointsModule
ReimbursementRequestController/api/reimbursement-requests7Payroll
ReimbursementTransactionController/api/reimbursement-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/.