Changeset 33d4f5d for src/main/java/it/finki/tinki/service/impl
- Timestamp:
- 01/12/21 02:42:18 (4 years ago)
- Branches:
- master
- Children:
- a70db1a
- Parents:
- 8f1f460
- Location:
- src/main/java/it/finki/tinki/service/impl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/service/impl/AccountServiceImpl.java
r8f1f460 r33d4f5d 214 214 215 215 private void setUpUser(User u){ 216 217 this.matchmakerService.removeByUserId(u.getId()); 218 216 219 List<Job> jobs = this.jobRepository.findAll(); 217 220 List<Project> projects = this.projectRepository.findAll(); -
src/main/java/it/finki/tinki/service/impl/MatchmakerServiceImpl.java
r8f1f460 r33d4f5d 17 17 import org.springframework.stereotype.Service; 18 18 19 import javax.transaction.Transactional; 19 20 import java.util.ArrayList; 20 21 import java.util.List; … … 118 119 if(coef!=0){ 119 120 EmbeddedMatchId embeddedMatchId = new EmbeddedMatchId(internship, user); 120 Match m = new Match(embeddedMatchId, coef, WorkType. PROJECT);121 Match m = new Match(embeddedMatchId, coef, WorkType.INTERNSHIP); 121 122 this.matchRepository.save(m); 122 123 } 123 124 } 124 125 126 @Transactional 127 @Override 128 public List<Match> removeByUserId(Long userId) { 129 return this.matchRepository.deleteAllByEmbeddedMatchId_User_Id(userId); 130 } 125 131 126 132 }
Note:
See TracChangeset
for help on using the changeset viewer.