Last change
on this file since 3a58bd6 was ce6ad22, checked in by DavidTrajkovski <davidtrajkovski11@…>, 3 years ago |
v1 initial prototype
|
-
Property mode
set to
100644
|
File size:
346 bytes
|
Rev | Line | |
---|
[ce6ad22] | 1 | package parkup.repositories;
|
---|
| 2 |
|
---|
| 3 | import java.util.Optional;
|
---|
| 4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
| 5 | import parkup.entities.Guest;
|
---|
| 6 |
|
---|
| 7 | public interface GuestRepository extends JpaRepository<Guest, Integer> {
|
---|
| 8 | Guest findByGuestId(int id);
|
---|
| 9 |
|
---|
| 10 | void deleteByGuestId(int id);
|
---|
| 11 |
|
---|
| 12 | Optional<Guest> findGuestByEmail(String email);
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.