Line | |
---|
1 | package com.example.moviezone.repository;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
|
---|
4 | import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoomId;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.data.jpa.repository.Query;
|
---|
7 | import org.springframework.data.repository.query.Param;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | public interface ProjectionIsPlayedInRoomRepository extends JpaRepository<ProjectionIsPlayedInRoom, ProjectionIsPlayedInRoomId> {
|
---|
12 | @Query("SELECT pir FROM ProjectionIsPlayedInRoom pir WHERE pir.idprojection = :id_projection")
|
---|
13 | List<ProjectionIsPlayedInRoom> findAllByProjectionId(@Param("id_projection") Integer id_projection);
|
---|
14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.