Ignore:
Timestamp:
08/24/23 02:28:14 (16 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
bcb4acc
Parents:
40935d3
Message:

fix

Location:
src/main/java/com/example/moviezone/repository
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/repository/DiscountRepository.java

    r40935d3 r1e7126f  
    22
    33import com.example.moviezone.model.Discount;
     4import com.example.moviezone.model.Projection;
    45import org.springframework.data.jpa.repository.JpaRepository;
     6import org.springframework.data.jpa.repository.query.Procedure;
    57
     8import javax.transaction.Transactional;
     9import java.util.List;
     10
     11@Transactional
    612public interface DiscountRepository extends JpaRepository<Discount,Integer> {
     13    @Procedure("project.getValidDiscounts")
     14    List<Discount> getValidDiscounts();
    715}
  • src/main/java/com/example/moviezone/repository/ProjectionRepository.java

    r40935d3 r1e7126f  
    1212    @Procedure("project.getProjectionsForFilms")
    1313    List<Projection> getProjectionsForFilms(int id);
     14    @Procedure("project.getProjectionsNow")
     15    List<Projection> getProjectionsNow();
    1416}
Note: See TracChangeset for help on using the changeset viewer.