Changeset 81c9e25 for back_end/src/main/java/it/finki
- 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
- Files:
-
- 1 added
- 64 moved
Legend:
- Unmodified
- Added
- Removed
-
back_end/src/main/java/it/finki/tinki/model/Users/User.java
r6729ba5 r81c9e25 9 9 import java.util.List; 10 10 11 @Entity 11 @Entity(name = "users") 12 12 @Data 13 13 public class User extends Account{ -
back_end/src/main/java/it/finki/tinki/service/AccountService.java
r6729ba5 r81c9e25 12 12 13 13 public interface AccountService { 14 boolean hasData(); 14 15 Account findUser(String email, String password, AccountType type); 15 16 Account registerUser(String email, String password, String name, String surname, List<Skill> retainedSkills, List<Skill> skillsToLearn); -
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.