Last change
on this file since 509cb95 was 504c3ef, checked in by i-ina <76742075+i-ina@…>, 3 years ago |
added team register
|
-
Property mode
set to
100644
|
File size:
409 bytes
|
Line | |
---|
1 | package it.finki.tinki.repository;
|
---|
2 |
|
---|
3 | import it.finki.tinki.model.Users.Team;
|
---|
4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
5 | import org.springframework.stereotype.Repository;
|
---|
6 |
|
---|
7 | import java.util.Optional;
|
---|
8 |
|
---|
9 | @Repository
|
---|
10 | public interface TeamRepository extends JpaRepository<Team, Long> {
|
---|
11 | Team findByEmailAndPassword(String email, String password);
|
---|
12 | Optional<Team> findByEmail(String email);
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.