Changeset 81c9e25 for back_end/src/main/java/it/finki/tinki/service/impl
- Timestamp:
- 02/08/21 20:00:55 (4 years ago)
- Branches:
- master
- Children:
- df62f68
- Parents:
- 6729ba5
- Location:
- back_end/src/main/java/it/finki/tinki/service/impl
- Files:
-
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
back_end/src/main/java/it/finki/tinki/service/impl/AccountServiceImpl.java
r6729ba5 r81c9e25 18 18 import org.springframework.stereotype.Service; 19 19 20 import java.util.ArrayList; 20 21 import java.util.List; 21 22 import java.util.Optional; … … 51 52 } 52 53 54 55 @Override 56 public boolean hasData() { 57 58 List<User> users = this.userRepository.findAll(); 59 List<Company> companies = this.companyRepository.findAll(); 60 List<Team> teams = this.teamRepository.findAll(); 61 62 return users.size() > 0 || companies.size() > 0 || teams.size() > 0; 63 } 64 53 65 @Override 54 66 public Account findUser(String email, String password, AccountType type) {
Note:
See TracChangeset
for help on using the changeset viewer.