source: src/main/java/com/example/autopartz/repository/OrdersForUserRepository.java@ 23a2bc5

main
Last change on this file since 23a2bc5 was 23a2bc5, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago

Added some views and tested them

  • Property mode set to 100644
File size: 504 bytes
Line 
1package com.example.autopartz.repository;
2
3import com.example.autopartz.model.OrdersForUser;
4import com.example.autopartz.model.OrdersForUserId;
5import jakarta.transaction.Transactional;
6import org.springframework.data.jpa.repository.JpaRepository;
7import org.springframework.stereotype.Repository;
8
9import java.util.List;
10
11@Repository
12@Transactional
13public interface OrdersForUserRepository extends JpaRepository<OrdersForUser, OrdersForUserId> {
14 List<OrdersForUser> findAllByUserid(Long userid);
15}
Note: See TracBrowser for help on using the repository browser.