Package me.josephsf.jobportaljosephsfeir.repository
package me.josephsf.jobportaljosephsfeir.repository
Provides repository interfaces for data access in the Job Portal application.
This package contains Spring Data MongoDB repository interfaces that define
data access operations for the application's domain model. These repositories
extend Spring Data's MongoRepository
interface to provide built-in CRUD operations and support for custom queries.
The key repositories in this package include:
UserRepository- For user account management and authenticationCandidateRepository- For candidate profile management and searchingRecruiterRepository- For recruiter profile managementJobRepository- For job posting management and searchingApplicationRepository- For job application tracking and management
These repositories leverage several approaches to define query methods:
- Method name conventions for simple queries (e.g., findByUsername)
- The @Query annotation for complex MongoDB queries
- Support for pagination and sorting via Pageable parameters
- Support for custom query methods that return counts and aggregations
The repositories in this package form the data access layer of the application, providing a clean separation between the business logic in the service layer and the underlying MongoDB database. They are used by the corresponding service classes to implement business operations while abstracting away the details of database access.
- Since:
- 2025-05-15
-
InterfacesClassDescriptionRepository interface for accessing and manipulating JobApplication documents in MongoDB.Repository interface for accessing and manipulating Candidate documents in MongoDB.Repository interface for accessing and manipulating Job documents in MongoDB.Repository interface for accessing and manipulating Recruiter documents in MongoDB.Repository interface for accessing and manipulating User documents in MongoDB.