source: src/main/java/it/finki/tinki/repository/InternshipRepository.java@ f067338

Last change on this file since f067338 was f067338, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago

added full text search on work

  • Property mode set to 100644
File size: 611 bytes
Line 
1package it.finki.tinki.repository;
2
3import it.finki.tinki.model.Skill;
4import it.finki.tinki.model.Work.Internship;
5import it.finki.tinki.model.Work.Job;
6import org.springframework.data.jpa.repository.JpaRepository;
7import org.springframework.stereotype.Repository;
8
9import java.util.List;
10
11@Repository
12public interface InternshipRepository extends JpaRepository<Internship, Long> {
13 List<Internship> findAllByAccount_Id(Long accountId);
14 List<Internship> findAllByTitleContainsOrDescriptionContains(String title, String description);
15 List<Internship> findAllBySkillsTrainedContaining(Skill skill);
16}
Note: See TracBrowser for help on using the repository browser.