Changeset 7987457 for src


Ignore:
Timestamp:
01/03/21 17:11:36 (4 years ago)
Author:
i-ina <76742075+i-ina@…>
Branches:
master
Children:
efdb71a
Parents:
bfa113e
Message:

added repositories

Location:
src/main/java/it/finki/tinki
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/controller/TestController.java

    rbfa113e r7987457  
    66import it.finki.tinki.model.Jobs.Work;
    77import it.finki.tinki.model.Skill;
     8import it.finki.tinki.repository.JobRepository;
    89import org.springframework.web.bind.annotation.GetMapping;
    910import org.springframework.web.bind.annotation.RequestMapping;
     
    1617@RequestMapping("/")
    1718public class TestController {
     19
     20    JobRepository jobRepository;
     21
     22    public TestController(JobRepository jobRepository) {
     23        this.jobRepository = jobRepository;
     24    }
    1825
    1926    @GetMapping
  • src/main/java/it/finki/tinki/repository/InternshipRepository.java

    rbfa113e r7987457  
    44import it.finki.tinki.model.Jobs.Work;
    55import org.springframework.data.jpa.repository.JpaRepository;
     6import org.springframework.stereotype.Repository;
    67
    78import java.util.List;
    89
     10@Repository
    911public interface InternshipRepository extends JpaRepository<Internship, Long> {
    1012    List<Internship> findAllByAccount_Id(Long accountId);
Note: See TracChangeset for help on using the changeset viewer.