Changeset 5867520 for src/main/java/com/example/moviezone/repository
- Timestamp:
- 02/08/23 15:48:51 (23 months ago)
- Branches:
- master
- Children:
- 2c7a732
- Parents:
- 90317ea
- Location:
- src/main/java/com/example/moviezone/repository
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/repository/ProjectionIsPlayedInRoomRepository.java
r90317ea r5867520 10 10 11 11 public interface ProjectionIsPlayedInRoomRepository extends JpaRepository<ProjectionIsPlayedInRoom, ProjectionIsPlayedInRoomId> { 12 @Query("SELECT pir FROM ProjectionIsPlayedInRoom pir WHERE pir.id _projection = :id_projection")12 @Query("SELECT pir FROM ProjectionIsPlayedInRoom pir WHERE pir.idprojection = :id_projection") 13 13 List<ProjectionIsPlayedInRoom> findAllByProjectionId(@Param("id_projection") Integer id_projection); 14 14 } -
src/main/java/com/example/moviezone/repository/ProjectionRepository.java
r90317ea r5867520 3 3 import com.example.moviezone.model.Projection; 4 4 import org.springframework.data.jpa.repository.JpaRepository; 5 import org.springframework.data.jpa.repository.query.Procedure; 5 6 7 import javax.transaction.Transactional; 6 8 import java.time.LocalDate; 7 9 import java.util.List; 8 10 @Transactional 9 11 public interface ProjectionRepository extends JpaRepository<Projection,Integer> { 10 // NOTE: CHANGE THIS WITH MATERIALIZED VIEW11 //List<Projection> findAllBydate_time_startBefore(LocalDate datum);12 @Procedure("project.getProjectionsForFilms") 13 List<Projection> getProjectionsForFilms(int id); 12 14 }
Note:
See TracChangeset
for help on using the changeset viewer.