Last change
on this file since a51a591 was a51a591, checked in by colovik <j.colovik@…>, 14 months ago |
final
|
-
Property mode
set to
100644
|
File size:
404 bytes
|
Line | |
---|
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.