source: src/main/java/com/example/moviezone/repository/ProjectionIsPlayedInRoomRepository.java

Last change on this file was 5867520, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Projections

  • Property mode set to 100644
File size: 722 bytes
Line 
1package com.example.moviezone.repository;
2
3import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
4import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoomId;
5import org.springframework.data.jpa.repository.JpaRepository;
6import org.springframework.data.jpa.repository.Query;
7import org.springframework.data.repository.query.Param;
8
9import java.util.List;
10
11public 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.