JobOpening
The JobOpening entity, mapped to the job_opening table.
| Table | job_opening |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 11 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/JobOpening.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
openingId | Integer | opening_id | — | primary key, generated |
title | String | title | — | — |
description | String | description | Yes | — |
requiredSkills | String | required_skills | Yes | — |
salaryRangeFrom | BigDecimal | salary_range_from | Yes | — |
salaryRangeTo | BigDecimal | salary_range_to | Yes | — |
publishSalaryRange | Boolean | publish_salary_range | — | — |
applicationsCount | Integer | applications_count | — | — |
status | String | status | — | — |
postedDate | LocalDate | posted_date | Yes | — |
closingDate | LocalDate | closing_date | 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 |
|---|---|---|---|---|
requisition | @ManyToOne | JobRequisition | requisition_id | — |
Referenced by
| Entity | Field | Kind |
|---|---|---|
| JobApplicant | opening | @ManyToOne |
Neighbourhood
Repository
JobOpeningRepository
Declared over JobOpening with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/JobOpeningRepository.java
| Method | Returns | Notes |
|---|---|---|
findWithDetailsByOpeningId(Integer openingId) | Optional<JobOpening> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over JobOpening.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| JobApplicantController | /api/job-applicants | 11 | Recruitment |
| JobOpeningController | /api/job-openings | 6 | Recruitment |
| PublicJobController | /api/public | 3 | Recruitment |
| ReportingController | /api/reports | 16 | Platform Misc |
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/.