Changeset feffc2f for src/main/java/com/example/autopartz/repository
- Timestamp:
- 01/03/23 19:29:20 (23 months ago)
- Branches:
- main
- Children:
- 60de3eb
- Parents:
- eaf0f1b
- 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 1 1 package com.example.autopartz.repository; 2 2 3 import com.example.autopartz.model. OrdersForUser;4 import com.example.autopartz.model. OrdersForUserId;3 import com.example.autopartz.model.views.OrdersForUser; 4 import com.example.autopartz.model.views.OrdersForUserId; 5 5 import jakarta.transaction.Transactional; 6 6 import org.springframework.data.jpa.repository.JpaRepository; -
src/main/java/com/example/autopartz/repository/PartsForCarTypeAndCategoryRepository.java
reaf0f1b rfeffc2f 1 1 package com.example.autopartz.repository; 2 2 3 import com.example.autopartz.model. PartsForCarTypeAndCategory;3 import com.example.autopartz.model.views.PartsForCarTypeAndCategory; 4 4 import jakarta.transaction.Transactional; 5 5 import org.springframework.data.jpa.repository.JpaRepository; -
src/main/java/com/example/autopartz/repository/RepairShopReviewSummaryRepository.java
reaf0f1b rfeffc2f 1 1 package com.example.autopartz.repository; 2 2 3 import com.example.autopartz.model. RepairShopReviewsSummary;3 import com.example.autopartz.model.views.RepairShopReviewsSummary; 4 4 import jakarta.transaction.Transactional; 5 5 import org.springframework.data.jpa.repository.JpaRepository; 6 6 import org.springframework.stereotype.Repository; 7 8 import java.util.List;9 7 10 8 // извештај за сите сервиси и за сите број на reviews и avg рејтинг … … 12 10 @Transactional 13 11 public interface RepairShopReviewSummaryRepository extends JpaRepository<RepairShopReviewsSummary,Long> { 14 List<RepairShopReviewsSummary> findAllByRsid(Long rsid);12 // List<RepairShopReviewsSummary> findAllByRsid(Long rsid); 15 13 } -
src/main/java/com/example/autopartz/repository/RepairsForUserRepository.java
reaf0f1b rfeffc2f 1 1 package com.example.autopartz.repository; 2 2 3 import com.example.autopartz.model. OrdersForUserId;4 import com.example.autopartz.model. RepairsForUser;3 import com.example.autopartz.model.views.OrdersForUserId; 4 import com.example.autopartz.model.views.RepairsForUser; 5 5 import org.springframework.data.jpa.repository.JpaRepository; 6 import org.springframework.stereotype.Repository; 6 7 7 8 import java.util.List; 8 9 10 @Repository 9 11 public interface RepairsForUserRepository extends JpaRepository<RepairsForUser, OrdersForUserId> { 10 12 List<RepairsForUser> findAllByUserid(Long userid); -
src/main/java/com/example/autopartz/repository/ReviewsForUserRepository.java
reaf0f1b rfeffc2f 1 1 package com.example.autopartz.repository; 2 2 3 import com.example.autopartz.model. ReviewsForUser;3 import com.example.autopartz.model.views.ReviewsForUser; 4 4 import org.springframework.data.jpa.repository.JpaRepository; 5 import org.springframework.stereotype.Repository; 5 6 6 7 import java.util.List; 7 8 9 @Repository 8 10 public interface ReviewsForUserRepository extends JpaRepository<ReviewsForUser,Long> { 9 11 List<ReviewsForUser> findAllByUserid(Long id); -
src/main/java/com/example/autopartz/repository/UserRepository.java
reaf0f1b rfeffc2f 5 5 import org.springframework.stereotype.Repository; 6 6 7 import java.util.List; 8 7 9 // import java.util.List; 8 10 9 11 @Repository 10 12 public 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); 12 15 }
Note:
See TracChangeset
for help on using the changeset viewer.