Changeset ae042f4 for src/main/java/com/example/autopartz/repository
- Timestamp:
- 01/04/23 02:49:26 (23 months ago)
- Branches:
- main
- Children:
- ab952ab
- Parents:
- 6832924
- Location:
- src/main/java/com/example/autopartz/repository
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/repository/CarRepository.java
r6832924 rae042f4 6 6 7 7 @Repository 8 public interface CarRepository extends JpaRepository<Car, Long> {8 public interface CarRepository extends JpaRepository<Car,Integer> { 9 9 } -
src/main/java/com/example/autopartz/repository/CategoryRepository.java
r6832924 rae042f4 6 6 7 7 @Repository 8 public interface CategoryRepository extends JpaRepository<Category, Long> {8 public interface CategoryRepository extends JpaRepository<Category,Integer> { 9 9 } -
src/main/java/com/example/autopartz/repository/OrdersForUserRepository.java
r6832924 rae042f4 3 3 import com.example.autopartz.model.views.OrdersForUser; 4 4 import com.example.autopartz.model.views.OrdersForUserId; 5 import jakarta.transaction.Transactional;6 5 import org.springframework.data.jpa.repository.JpaRepository; 7 6 import org.springframework.stereotype.Repository; 8 7 8 import javax.transaction.Transactional; 9 9 import java.util.List; 10 10 … … 12 12 @Transactional 13 13 public interface OrdersForUserRepository extends JpaRepository<OrdersForUser, OrdersForUserId> { 14 List<OrdersForUser> findAllByUserid( Longuserid);14 List<OrdersForUser> findAllByUserid(Integer userid); 15 15 } -
src/main/java/com/example/autopartz/repository/PartRepository.java
r6832924 rae042f4 6 6 7 7 @Repository 8 public interface PartRepository extends JpaRepository<Part, Long> {8 public interface PartRepository extends JpaRepository<Part,Integer> { 9 9 } -
src/main/java/com/example/autopartz/repository/PartsForCarTypeAndCategoryRepository.java
r6832924 rae042f4 2 2 3 3 import com.example.autopartz.model.views.PartsForCarTypeAndCategory; 4 import jakarta.transaction.Transactional;5 4 import org.springframework.data.jpa.repository.JpaRepository; 6 5 import org.springframework.stereotype.Repository; 7 6 7 import javax.transaction.Transactional; 8 8 import java.util.List; 9 9 10 10 @Repository 11 11 @Transactional 12 public interface PartsForCarTypeAndCategoryRepository extends JpaRepository<PartsForCarTypeAndCategory, Long> {12 public interface PartsForCarTypeAndCategoryRepository extends JpaRepository<PartsForCarTypeAndCategory,Integer> { 13 13 List<PartsForCarTypeAndCategory> findAllByCartypeAndCategory(String cartype, String category); 14 14 } -
src/main/java/com/example/autopartz/repository/PriceRepository.java
r6832924 rae042f4 7 7 import java.util.List; 8 8 9 public interface PriceRepository extends JpaRepository<Price, Long> {9 public interface PriceRepository extends JpaRepository<Price,Integer> { 10 10 List<Price> findAllByPart(Part part); 11 11 } -
src/main/java/com/example/autopartz/repository/RepairShopRepository.java
r6832924 rae042f4 6 6 7 7 @Repository 8 public interface RepairShopRepository extends JpaRepository<RepairShop, Long> {8 public interface RepairShopRepository extends JpaRepository<RepairShop,Integer> { 9 9 10 10 } -
src/main/java/com/example/autopartz/repository/RepairShopReviewSummaryRepository.java
r6832924 rae042f4 2 2 3 3 import com.example.autopartz.model.views.RepairShopReviewsSummary; 4 import jakarta.transaction.Transactional;5 4 import org.springframework.data.jpa.repository.JpaRepository; 6 5 import org.springframework.stereotype.Repository; 6 7 import javax.transaction.Transactional; 7 8 8 9 // извештај за сите сервиси и за сите број на reviews и avg рејтинг 9 10 @Repository 10 11 @Transactional 11 public interface RepairShopReviewSummaryRepository extends JpaRepository<RepairShopReviewsSummary, Long> {12 // List<RepairShopReviewsSummary> findAllByRsid( Longrsid);12 public interface RepairShopReviewSummaryRepository extends JpaRepository<RepairShopReviewsSummary,Integer> { 13 // List<RepairShopReviewsSummary> findAllByRsid(Integer rsid); 13 14 } -
src/main/java/com/example/autopartz/repository/RepairsForUserRepository.java
r6832924 rae042f4 10 10 @Repository 11 11 public interface RepairsForUserRepository extends JpaRepository<RepairsForUser, OrdersForUserId> { 12 List<RepairsForUser> findAllByUserid( Longuserid);12 List<RepairsForUser> findAllByUserid(Integer userid); 13 13 } -
src/main/java/com/example/autopartz/repository/ReviewsForUserRepository.java
r6832924 rae042f4 8 8 9 9 @Repository 10 public interface ReviewsForUserRepository extends JpaRepository<ReviewsForUser, Long> {11 List<ReviewsForUser> findAllByUserid( Longid);10 public interface ReviewsForUserRepository extends JpaRepository<ReviewsForUser,Integer> { 11 List<ReviewsForUser> findAllByUserid(Integer id); 12 12 } -
src/main/java/com/example/autopartz/repository/UserRepository.java
r6832924 rae042f4 10 10 11 11 @Repository 12 public interface UserRepository extends JpaRepository<User, Long> {13 //List<User> findAllByUsername(String username);12 public interface UserRepository extends JpaRepository<User,Integer> { 13 List<User> findAllByUsername(String username); 14 14 List<User> findAllByUsernameAndPassword(String username, String password); 15 15 }
Note:
See TracChangeset
for help on using the changeset viewer.