Changeset 4cec0a3 for src/main/java/it/finki/tinki/bootstrap
- Timestamp:
- 01/08/21 02:08:22 (4 years ago)
- Branches:
- master
- Children:
- b24fe9b
- Parents:
- a8e8545
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/bootstrap/DataHolder.java
ra8e8545 r4cec0a3 69 69 lista = skillRepository.findAll(); 70 70 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 71 89 List<Long> ids = new ArrayList<>(); 72 90 lista.forEach(item -> { … … 74 92 }); 75 93 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 76 104 Account c = this.accountService.registerCompany("asdf@asdf", "pass", "Co.co", "Macedonia", "Skopje", "Pero Nakov"); 105 Account m = this.accountService.registerTeam("asdf", "asd", "TeamRocket", 3); 77 106 78 107 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); 79 111 80 112 Account u = this.accountService.registerUser("asdf", "asdf", "Zoki", "Poki", lista, lista);
Note:
See TracChangeset
for help on using the changeset viewer.