Skip to main content

StaffingPlanItem

The StaffingPlanItem entity, mapped to the staffing_plan_item table.

Tablestaffing_plan_item
Tenant-scopedYes — extends TenantOwned
Columns4
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/StaffingPlanItem.java

Columns​

FieldTypeColumnNullNotes
itemIdIntegeritem_id—primary key, generated
roleTitleStringrole_title——
numVacanciesIntegernum_vacancies——
estimatedCostBigDecimalestimated_costYes—

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
plan@ManyToOneStaffingPlanplan_idYes
requisition@ManyToOneJobRequisitionrequisition_id—

Referenced by​

EntityFieldKind
StaffingPlanitems@OneToMany

Neighbourhood​

Repository​

StaffingPlanItemRepository​

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

MethodReturnsNotes
findAllByPlan_PlanId(Integer planId)List<StaffingPlanItem>derived

Reached by​

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

ControllerBase pathEndpointsModule
StaffingPlanController/api/staffing-plans7Recruitment

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