Ignore:
Timestamp:
02/06/23 15:13:02 (22 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
f9cc555
Parents:
f8ef9bd
Message:

I CALLED A PROCEDURE FROM SPRING

File:
1 edited

Legend:

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

    rf8ef9bd r43a1688  
    44import com.example.moviezone.model.manytomany.CustomerRatesFilmId;
    55import org.springframework.data.jpa.repository.JpaRepository;
     6import org.springframework.data.jpa.repository.query.Procedure;
     7import org.springframework.data.repository.query.Param;
    68import org.springframework.stereotype.Repository;
    79
    810@Repository
    911public interface CustomerRatesFilmRepository extends JpaRepository<CustomerRatesFilm, CustomerRatesFilmId> {
     12@Procedure("project.avg_rating1")
     13    double avg_rating(int id);
     14
    1015}
Note: See TracChangeset for help on using the changeset viewer.