Changeset 89438a3 for src/main/java/com/example/moviezone/repository/ProjectionIsPlayedInRoomRepository.java
- Timestamp:
- 02/08/23 11:18:57 (22 months ago)
- Branches:
- master
- Children:
- afa6544
- Parents:
- 93341f8 (diff), 64ee7f4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/repository/ProjectionIsPlayedInRoomRepository.java
r93341f8 r89438a3 4 4 import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoomId; 5 5 import org.springframework.data.jpa.repository.JpaRepository; 6 import org.springframework.data.jpa.repository.Query; 7 import org.springframework.data.repository.query.Param; 6 8 7 9 import java.util.List; 8 10 9 11 public interface ProjectionIsPlayedInRoomRepository extends JpaRepository<ProjectionIsPlayedInRoom, ProjectionIsPlayedInRoomId> { 10 List<ProjectionIsPlayedInRoom> findAllById_projection(Integer id_projection); 12 @Query("SELECT pir FROM ProjectionIsPlayedInRoom pir WHERE pir.id_projection = :id_projection") 13 List<ProjectionIsPlayedInRoom> findAllByProjectionId(@Param("id_projection") Integer id_projection); 11 14 }
Note:
See TracChangeset
for help on using the changeset viewer.