Ignore:
Timestamp:
01/04/23 02:49:26 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
ab952ab
Parents:
6832924
Message:

Configured spring security, changed spring version

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  
    66
    77@Repository
    8 public interface CarRepository extends JpaRepository<Car,Long> {
     8public interface CarRepository extends JpaRepository<Car,Integer> {
    99}
  • src/main/java/com/example/autopartz/repository/CategoryRepository.java

    r6832924 rae042f4  
    66
    77@Repository
    8 public interface CategoryRepository extends JpaRepository<Category,Long> {
     8public interface CategoryRepository extends JpaRepository<Category,Integer> {
    99}
  • src/main/java/com/example/autopartz/repository/OrdersForUserRepository.java

    r6832924 rae042f4  
    33import com.example.autopartz.model.views.OrdersForUser;
    44import com.example.autopartz.model.views.OrdersForUserId;
    5 import jakarta.transaction.Transactional;
    65import org.springframework.data.jpa.repository.JpaRepository;
    76import org.springframework.stereotype.Repository;
    87
     8import javax.transaction.Transactional;
    99import java.util.List;
    1010
     
    1212@Transactional
    1313public interface OrdersForUserRepository extends JpaRepository<OrdersForUser, OrdersForUserId> {
    14     List<OrdersForUser> findAllByUserid(Long userid);
     14    List<OrdersForUser> findAllByUserid(Integer userid);
    1515}
  • src/main/java/com/example/autopartz/repository/PartRepository.java

    r6832924 rae042f4  
    66
    77@Repository
    8 public interface PartRepository extends JpaRepository<Part,Long> {
     8public interface PartRepository extends JpaRepository<Part,Integer> {
    99}
  • src/main/java/com/example/autopartz/repository/PartsForCarTypeAndCategoryRepository.java

    r6832924 rae042f4  
    22
    33import com.example.autopartz.model.views.PartsForCarTypeAndCategory;
    4 import jakarta.transaction.Transactional;
    54import org.springframework.data.jpa.repository.JpaRepository;
    65import org.springframework.stereotype.Repository;
    76
     7import javax.transaction.Transactional;
    88import java.util.List;
    99
    1010@Repository
    1111@Transactional
    12 public interface PartsForCarTypeAndCategoryRepository extends JpaRepository<PartsForCarTypeAndCategory,Long> {
     12public interface PartsForCarTypeAndCategoryRepository extends JpaRepository<PartsForCarTypeAndCategory,Integer> {
    1313    List<PartsForCarTypeAndCategory> findAllByCartypeAndCategory(String cartype, String category);
    1414}
  • src/main/java/com/example/autopartz/repository/PriceRepository.java

    r6832924 rae042f4  
    77import java.util.List;
    88
    9 public interface PriceRepository extends JpaRepository<Price,Long> {
     9public interface PriceRepository extends JpaRepository<Price,Integer> {
    1010    List<Price> findAllByPart(Part part);
    1111}
  • src/main/java/com/example/autopartz/repository/RepairShopRepository.java

    r6832924 rae042f4  
    66
    77@Repository
    8 public interface RepairShopRepository extends JpaRepository<RepairShop,Long> {
     8public interface RepairShopRepository extends JpaRepository<RepairShop,Integer> {
    99
    1010}
  • src/main/java/com/example/autopartz/repository/RepairShopReviewSummaryRepository.java

    r6832924 rae042f4  
    22
    33import com.example.autopartz.model.views.RepairShopReviewsSummary;
    4 import jakarta.transaction.Transactional;
    54import org.springframework.data.jpa.repository.JpaRepository;
    65import org.springframework.stereotype.Repository;
     6
     7import javax.transaction.Transactional;
    78
    89// извештај за сите сервиси и за сите број на reviews и avg рејтинг
    910@Repository
    1011@Transactional
    11 public interface RepairShopReviewSummaryRepository extends JpaRepository<RepairShopReviewsSummary,Long> {
    12     // List<RepairShopReviewsSummary> findAllByRsid(Long rsid);
     12public interface RepairShopReviewSummaryRepository extends JpaRepository<RepairShopReviewsSummary,Integer> {
     13    // List<RepairShopReviewsSummary> findAllByRsid(Integer rsid);
    1314}
  • src/main/java/com/example/autopartz/repository/RepairsForUserRepository.java

    r6832924 rae042f4  
    1010@Repository
    1111public interface RepairsForUserRepository extends JpaRepository<RepairsForUser, OrdersForUserId> {
    12     List<RepairsForUser> findAllByUserid(Long userid);
     12    List<RepairsForUser> findAllByUserid(Integer userid);
    1313}
  • src/main/java/com/example/autopartz/repository/ReviewsForUserRepository.java

    r6832924 rae042f4  
    88
    99@Repository
    10 public interface ReviewsForUserRepository extends JpaRepository<ReviewsForUser,Long> {
    11     List<ReviewsForUser> findAllByUserid(Long id);
     10public interface ReviewsForUserRepository extends JpaRepository<ReviewsForUser,Integer> {
     11    List<ReviewsForUser> findAllByUserid(Integer id);
    1212}
  • src/main/java/com/example/autopartz/repository/UserRepository.java

    r6832924 rae042f4  
    1010
    1111@Repository
    12 public interface UserRepository extends JpaRepository<User,Long> {
    13      // List<User> findAllByUsername(String username);
     12public interface UserRepository extends JpaRepository<User,Integer> {
     13     List<User> findAllByUsername(String username);
    1414     List<User> findAllByUsernameAndPassword(String username, String password);
    1515}
Note: See TracChangeset for help on using the changeset viewer.