Skip to main content

LeaveRequestType

The LeaveRequestType entity, mapped to the leave_request_type table.

Tableleave_request_type
Tenant-scopedYes — extends TenantOwned
Columns3
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/LeaveRequestType.java

Columns​

FieldTypeColumnNullNotes
leaveTypeIdIntegerleave_type_id—primary key, generated
leaveTypeNameStringleave_type_nameYes—
maxCreditsIntegermax_creditsYes—

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.

Referenced by​

EntityFieldKind
LeaveBalanceleaveType@ManyToOne
LeaveRequestleaveType@ManyToOne

Neighbourhood​

Repository​

LeaveRequestTypeRepository​

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

Reached by​

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

ControllerBase pathEndpointsModule
DemoDataController/api/system-admin/demo-data3Billing & Platform
LeaveBalanceController/api/leave-balances1HR
LeaveRequestController/api/leave-requests7HR
LeaveTypeController/api/leave-types1HR
PublicSignupController/api/public/signup2Billing & Platform
TenantAdminController/api/admin/tenants7Billing & Platform

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