Ignore:
Timestamp:
01/03/23 19:29:20 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
60de3eb
Parents:
eaf0f1b
Message:

Added some views and functionalities

Location:
src/main/java/com/example/autopartz/repository
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/repository/OrdersForUserRepository.java

    reaf0f1b rfeffc2f  
    11package com.example.autopartz.repository;
    22
    3 import com.example.autopartz.model.OrdersForUser;
    4 import com.example.autopartz.model.OrdersForUserId;
     3import com.example.autopartz.model.views.OrdersForUser;
     4import com.example.autopartz.model.views.OrdersForUserId;
    55import jakarta.transaction.Transactional;
    66import org.springframework.data.jpa.repository.JpaRepository;
  • src/main/java/com/example/autopartz/repository/PartsForCarTypeAndCategoryRepository.java

    reaf0f1b rfeffc2f  
    11package com.example.autopartz.repository;
    22
    3 import com.example.autopartz.model.PartsForCarTypeAndCategory;
     3import com.example.autopartz.model.views.PartsForCarTypeAndCategory;
    44import jakarta.transaction.Transactional;
    55import org.springframework.data.jpa.repository.JpaRepository;
  • src/main/java/com/example/autopartz/repository/RepairShopReviewSummaryRepository.java

    reaf0f1b rfeffc2f  
    11package com.example.autopartz.repository;
    22
    3 import com.example.autopartz.model.RepairShopReviewsSummary;
     3import com.example.autopartz.model.views.RepairShopReviewsSummary;
    44import jakarta.transaction.Transactional;
    55import org.springframework.data.jpa.repository.JpaRepository;
    66import org.springframework.stereotype.Repository;
    7 
    8 import java.util.List;
    97
    108// извештај за сите сервиси и за сите број на reviews и avg рејтинг
     
    1210@Transactional
    1311public interface RepairShopReviewSummaryRepository extends JpaRepository<RepairShopReviewsSummary,Long> {
    14     List<RepairShopReviewsSummary> findAllByRsid(Long rsid);
     12    // List<RepairShopReviewsSummary> findAllByRsid(Long rsid);
    1513}
  • src/main/java/com/example/autopartz/repository/RepairsForUserRepository.java

    reaf0f1b rfeffc2f  
    11package com.example.autopartz.repository;
    22
    3 import com.example.autopartz.model.OrdersForUserId;
    4 import com.example.autopartz.model.RepairsForUser;
     3import com.example.autopartz.model.views.OrdersForUserId;
     4import com.example.autopartz.model.views.RepairsForUser;
    55import org.springframework.data.jpa.repository.JpaRepository;
     6import org.springframework.stereotype.Repository;
    67
    78import java.util.List;
    89
     10@Repository
    911public interface RepairsForUserRepository extends JpaRepository<RepairsForUser, OrdersForUserId> {
    1012    List<RepairsForUser> findAllByUserid(Long userid);
  • src/main/java/com/example/autopartz/repository/ReviewsForUserRepository.java

    reaf0f1b rfeffc2f  
    11package com.example.autopartz.repository;
    22
    3 import com.example.autopartz.model.ReviewsForUser;
     3import com.example.autopartz.model.views.ReviewsForUser;
    44import org.springframework.data.jpa.repository.JpaRepository;
     5import org.springframework.stereotype.Repository;
    56
    67import java.util.List;
    78
     9@Repository
    810public interface ReviewsForUserRepository extends JpaRepository<ReviewsForUser,Long> {
    911    List<ReviewsForUser> findAllByUserid(Long id);
  • src/main/java/com/example/autopartz/repository/UserRepository.java

    reaf0f1b rfeffc2f  
    55import org.springframework.stereotype.Repository;
    66
     7import java.util.List;
     8
    79// import java.util.List;
    810
    911@Repository
    1012public interface UserRepository extends JpaRepository<User,Long> {
    11     // List<User> findAllByUsername(String username);
     13     // List<User> findAllByUsername(String username);
     14     List<User> findAllByUsernameAndPassword(String username, String password);
    1215}
Note: See TracChangeset for help on using the changeset viewer.