Last change
on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
625 bytes
|
Line | |
---|
1 | package com.example.baza.repository;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.baza.model.Chovek2;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.stereotype.Repository;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 | import java.util.Optional;
|
---|
10 |
|
---|
11 | @Repository
|
---|
12 | public interface ChovekRepository extends JpaRepository<Chovek2, Integer> {
|
---|
13 |
|
---|
14 | Optional<Chovek2> findById(Integer id);
|
---|
15 |
|
---|
16 | List<Chovek2> findByImeAndPrezime(String ime, String prezime);
|
---|
17 |
|
---|
18 | Optional<Chovek2> findByUsernameAndPassword(String username, String password);
|
---|
19 |
|
---|
20 | List<Chovek2> findByEmail(String email);
|
---|
21 |
|
---|
22 | List<Chovek2> findByTelBroj(String telBroj);
|
---|
23 |
|
---|
24 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.