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

main
Last change on this file was 2a552fe, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 16 months ago

Added transactional methods to secure the database integrity and refactoring

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