Ignore:
Timestamp:
01/08/21 02:08:22 (4 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
b24fe9b
Parents:
a8e8545
Message:

added response dto for job response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/bootstrap/DataHolder.java

    ra8e8545 r4cec0a3  
    6969        lista = skillRepository.findAll();
    7070
     71        List<Skill> l2 = new ArrayList<>();
     72        l2.add(skillRepository.getOne(3L));
     73        l2.add(skillRepository.getOne(0L));
     74        l2.add(skillRepository.getOne(1L));
     75        l2.add(skillRepository.getOne(2L));
     76        l2.add(skillRepository.getOne(4L));
     77        l2.add(skillRepository.getOne(5L));
     78        l2.add(skillRepository.getOne(6L));
     79        l2.add(skillRepository.getOne(7L));
     80
     81
     82        List<Skill> l3 = new ArrayList<>();
     83        l3.add(skillRepository.getOne(3L));
     84        l3.add(skillRepository.getOne(0L));
     85        l3.add(skillRepository.getOne(5L));
     86        l3.add(skillRepository.getOne(6L));
     87        l3.add(skillRepository.getOne(7L));
     88
    7189        List<Long> ids = new ArrayList<>();
    7290        lista.forEach(item -> {
     
    7492        });
    7593
     94        List<Long> smalls = new ArrayList<>();
     95        l2.forEach(item -> {
     96            smalls.add(item.getId());
     97        });
     98
     99        List<Long> sm2 = new ArrayList<>();
     100        l3.forEach(item -> {
     101            sm2.add(item.getId());
     102        });
     103
    76104        Account c = this.accountService.registerCompany("asdf@asdf", "pass", "Co.co", "Macedonia", "Skopje", "Pero Nakov");
     105        Account m = this.accountService.registerTeam("asdf", "asd", "TeamRocket", 3);
    77106
    78107        Job j = this.workService.insertJob("Asdf", "Asdfa", c.getId() ,5000, ids, AccountType.COMPANY);
     108        Job k = this.workService.insertJob("Asdf", "Asdfa", m.getId() ,5000, ids, AccountType.TEAM);
     109        Job z = this.workService.insertJob("asdfq", "asdfqw", m.getId() ,5000, smalls, AccountType.TEAM);
     110        Job n = this.workService.insertJob("asdfq", "asdfqw", c.getId() ,5000, sm2, AccountType.COMPANY);
    79111
    80112        Account u = this.accountService.registerUser("asdf", "asdf", "Zoki", "Poki", lista, lista);
Note: See TracChangeset for help on using the changeset viewer.