Skip to main content

JobApplicant

The JobApplicant entity, mapped to the job_applicant table.

Tablejob_applicant
Tenant-scopedYes — extends TenantOwned
Columns12
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/JobApplicant.java

Columns​

FieldTypeColumnNullNotes
applicantIdIntegerapplicant_id—primary key, generated
firstNameStringfirst_name——
lastNameStringlast_name——
emailStringemailYes—
phoneStringphoneYes—
birthdayLocalDatebirthdayYes—
addressStringaddressYes—
skillsStringskillsYes—
expectedSalaryBigDecimalexpected_salaryYes—
statusStringstatus——
appliedDateLocalDateapplied_date——
notesStringnotesYes—

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
opening@ManyToOneJobOpeningopening_idYes
referredBy@ManyToOneEmployeereferred_by—

Referenced by​

EntityFieldKind
InterviewScheduleapplicant@ManyToOne
JobApplicantResumeapplicant@OneToOne
JobOfferapplicant@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

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

ControllerBase pathEndpointsModule
InterviewScheduleController/api/interview-schedules8Recruitment
JobApplicantController/api/job-applicants11Recruitment
JobOfferController/api/job-offers6Recruitment
PublicJobController/api/public3Recruitment
ReportingController/api/reports16Platform 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/.