Changeset f067338 for src/main/java/it/finki/tinki/repository
- Timestamp:
- 01/09/21 03:04:38 (4 years ago)
- Branches:
- master
- Children:
- a3d2b0d
- Parents:
- 297bd16
- Location:
- src/main/java/it/finki/tinki/repository
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/repository/InternshipRepository.java
r297bd16 rf067338 1 1 package it.finki.tinki.repository; 2 2 3 import it.finki.tinki.model.Skill; 3 4 import it.finki.tinki.model.Work.Internship; 5 import it.finki.tinki.model.Work.Job; 4 6 import org.springframework.data.jpa.repository.JpaRepository; 5 7 import org.springframework.stereotype.Repository; … … 10 12 public interface InternshipRepository extends JpaRepository<Internship, Long> { 11 13 List<Internship> findAllByAccount_Id(Long accountId); 14 List<Internship> findAllByTitleContainsOrDescriptionContains(String title, String description); 15 List<Internship> findAllBySkillsTrainedContaining(Skill skill); 12 16 } -
src/main/java/it/finki/tinki/repository/JobRepository.java
r297bd16 rf067338 1 1 package it.finki.tinki.repository; 2 2 3 import it.finki.tinki.model.Skill; 3 4 import it.finki.tinki.model.Work.Job; 4 5 import org.springframework.data.jpa.repository.JpaRepository; … … 6 7 7 8 import java.util.List; 9 import java.util.Set; 8 10 9 11 @Repository 10 12 public interface JobRepository extends JpaRepository<Job, Long>{ 11 13 List<Job> findAllByAccount_Id(Long accountId); 14 List<Job> findAllByTitleContainsOrDescriptionContains(String title, String description); 15 List<Job> findAllBySkillsRequiredContaining(Skill skill); 12 16 } -
src/main/java/it/finki/tinki/repository/ProjectRepository.java
r297bd16 rf067338 1 1 package it.finki.tinki.repository; 2 2 3 import it.finki.tinki.model.Skill; 4 import it.finki.tinki.model.Work.Job; 3 5 import it.finki.tinki.model.Work.Project; 4 6 import org.springframework.data.jpa.repository.JpaRepository; … … 10 12 public interface ProjectRepository extends JpaRepository<Project, Long> { 11 13 List<Project> findAllByAccount_Id(Long accountId); 14 List<Project> findAllByTitleContainsOrDescriptionContains(String title, String description); 15 List<Project> findAllBySkillsRequiredContaining(Skill skill); 12 16 } -
src/main/java/it/finki/tinki/repository/SkillRepository.java
r297bd16 rf067338 5 5 import org.springframework.stereotype.Repository; 6 6 7 import java.util.List; 7 8 import java.util.Optional; 8 9 … … 10 11 public interface SkillRepository extends JpaRepository<Skill, Long> { 11 12 Optional<Skill> findById(Long id); 13 List<Skill> findAllByNameContaining(String text); 12 14 }
Note:
See TracChangeset
for help on using the changeset viewer.