Skip to main content

JobOffer

The JobOffer entity, mapped to the job_offer table.

Tablejob_offer
Tenant-scopedYes — extends TenantOwned
Columns24
Relationships3
Sourcebackend/src/main/java/com/motorph/payroll/model/JobOffer.java

Columns​

FieldTypeColumnNullNotes
offerIdIntegeroffer_id—primary key, generated
offeredSalaryBigDecimaloffered_salaryYes—
startDateLocalDatestart_dateYes—
offerDateLocalDateoffer_dateYes—
expiryDateLocalDateexpiry_dateYes—
statusStringstatus——
notesStringnotesYes—
employmentTypeStringemployment_typeYes—
workArrangementStringwork_arrangementYes—
probationEndDateLocalDateprobation_end_dateYes—
riceSubsidyBigDecimalrice_subsidyYes—
phoneAllowanceBigDecimalphone_allowanceYes—
clothingAllowanceBigDecimalclothing_allowanceYes—
grossSemiMonthlyRateBigDecimalgross_semi_monthly_rateYes—
hourlyRateBigDecimalhourly_rateYes—
sssNumberStringsss_numberYes—
sssVerifiedbooleansss_verified——
philhealthNumberStringphilhealth_numberYes—
philhealthVerifiedbooleanphilhealth_verified——
pagibigNumberStringpagibig_numberYes—
pagibigVerifiedbooleanpagibig_verified——
tinNumberStringtin_numberYes—
tinVerifiedbooleantin_verified——
acceptedAtLocalDateTimeaccepted_atYes—

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
applicant@ManyToOneJobApplicantapplicant_idYes
position@ManyToOnePositionposition_idYes
createdBy@ManyToOneEmployeecreated_byYes

Neighbourhood​

Repository​

JobOfferRepository​

Declared over JobOffer with id type Integer, with JpaSpecificationExecutor for dynamic filtering. Source: backend/src/main/java/com/motorph/payroll/repository/JobOfferRepository.java

MethodReturnsNotes
findWithDetailsByOfferId(Integer offerId)Optional<JobOffer>derived
countByStatus(String status)longderived
findAllByStatusAndAcceptedAtIsNotNull(String status)List<JobOffer>derived

Reached by​

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

ControllerBase pathEndpointsModule
JobOfferController/api/job-offers6Recruitment
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/.