Rev | Line | |
---|
[a51a591] | 1 | package com.example.repository;
|
---|
| 2 |
|
---|
| 3 | import com.example.model.Client;
|
---|
| 4 | import com.example.model.Event;
|
---|
| 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 EventRepository extends JpaRepository<Event,Integer> {
|
---|
| 13 | List<Event> findByClient(Optional<Client> client);
|
---|
| 14 |
|
---|
| 15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.