Changeset 64ee7f4 for src/main/java/com/example/moviezone/repository
- Timestamp:
- 02/08/23 00:06:18 (23 months ago)
- Branches:
- master
- Children:
- 89438a3
- Parents:
- 8d49568
- Location:
- src/main/java/com/example/moviezone/repository
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/repository/ProjectionIsPlayedInRoomRepository.java
r8d49568 r64ee7f4 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 } -
src/main/java/com/example/moviezone/repository/SeatRepository.java
r8d49568 r64ee7f4 10 10 @Repository 11 11 public interface SeatRepository extends JpaRepository<Seat,Integer> { 12 List<Seat> findAllByProjection _room(Projection_Room projection_room);12 List<Seat> findAllByProjection(Projection_Room projection); 13 13 }
Note:
See TracChangeset
for help on using the changeset viewer.