JobApplicant
The JobApplicant entity, mapped to the job_applicant table.
| Table | job_applicant |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 12 |
| Relationships | 2 |
| Source | backend/src/main/java/com/motorph/payroll/model/JobApplicant.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
applicantId | Integer | applicant_id | — | primary key, generated |
firstName | String | first_name | — | — |
lastName | String | last_name | — | — |
email | String | email | Yes | — |
phone | String | phone | Yes | — |
birthday | LocalDate | birthday | Yes | — |
address | String | address | Yes | — |
skills | String | skills | Yes | — |
expectedSalary | BigDecimal | expected_salary | Yes | — |
status | String | status | — | — |
appliedDate | LocalDate | applied_date | — | — |
notes | String | notes | 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 |
|---|---|---|---|---|
opening | @ManyToOne | JobOpening | opening_id | Yes |
referredBy | @ManyToOne | Employee | referred_by | — |
Referenced by
| Entity | Field | Kind |
|---|---|---|
| InterviewSchedule | applicant | @ManyToOne |
| JobApplicantResume | applicant | @OneToOne |
| JobOffer | applicant | @ManyToOne |
Neighbourhood
Repository
JobApplicantRepository
Declared over JobApplicant with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/JobApplicantRepository.java
| Method | Returns | Notes |
|---|---|---|
findWithDetailsByApplicantId(Integer applicantId) | Optional<JobApplicant> | derived |
findAllByOpening_OpeningIdAndStatusIn(Integer openingId, List<String> statuses) | List<JobApplicant> | derived |
findAllByOrderByAppliedDateDesc() | List<JobApplicant> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over JobApplicant.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| InterviewScheduleController | /api/interview-schedules | 8 | Recruitment |
| JobApplicantController | /api/job-applicants | 11 | Recruitment |
| JobOfferController | /api/job-offers | 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/.