Ignore:
Timestamp:
01/08/21 20:46:33 (4 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
bd38a55
Parents:
31fc5c8
Message:

refactor and edit team/company/user

Location:
src/main/java/it/finki/tinki/repository
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/repository/CompanyRepository.java

    r31fc5c8 r14b648e  
    1010public interface CompanyRepository extends JpaRepository<Company, Long> {
    1111    Company findByEmailAndPassword(String email, String password);
    12     Optional<Object> findByEmail(String email);
     12    Optional<Company> findByEmail(String email);
     13    Optional<Company> findByIdAndEmail(Long id, String email);
    1314}
  • src/main/java/it/finki/tinki/repository/TeamRepository.java

    r31fc5c8 r14b648e  
    11package it.finki.tinki.repository;
    22
     3import it.finki.tinki.model.Users.Company;
    34import it.finki.tinki.model.Users.Team;
    45import org.springframework.data.jpa.repository.JpaRepository;
     
    1112    Team findByEmailAndPassword(String email, String password);
    1213    Optional<Team> findByEmail(String email);
     14    Optional<Team> findByIdAndEmail(Long id, String email);
    1315}
  • src/main/java/it/finki/tinki/repository/UserRepository.java

    r31fc5c8 r14b648e  
    1111    User findByEmailAndPassword(String email, String password);
    1212    Optional<User> findByEmail(String email);
     13    Optional<User> findByIdAndEmail(Long id, String email);
    1314}
Note: See TracChangeset for help on using the changeset viewer.