Changeset 4d67d70 for src/main/java/com/example/autopartz/repository
- Timestamp:
- 01/07/23 01:51:16 (23 months ago)
- Branches:
- main
- Children:
- ed7ef92
- Parents:
- 89865ae
- Location:
- src/main/java/com/example/autopartz/repository
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/repository/PartRepository.java
r89865ae r4d67d70 5 5 import org.springframework.stereotype.Repository; 6 6 7 import java.util.List; 8 7 9 @Repository 8 10 public interface PartRepository extends JpaRepository<Part,Integer> { 11 List<Part> findAllByName(String name); 9 12 } -
src/main/java/com/example/autopartz/repository/WarehouseRepository.java
r89865ae r4d67d70 8 8 public interface WarehouseRepository extends JpaRepository<Warehouse,Integer> { 9 9 List<Warehouse> findAllByLocation(String location); 10 List<Warehouse> findAllById(Integer id); 10 11 } -
src/main/java/com/example/autopartz/repository/WarehousemanRepository.java
r89865ae r4d67d70 1 1 package com.example.autopartz.repository; 2 2 3 import com.example.autopartz.model.Warehouse; 3 4 import com.example.autopartz.model.Warehouseman; 4 5 import org.springframework.data.jpa.repository.JpaRepository; 5 6 7 import java.util.List; 8 6 9 public interface WarehousemanRepository extends JpaRepository<Warehouseman,Integer> { 10 List<Warehouseman> findAllByWarehouse(Warehouse warehouse); 7 11 }
Note:
See TracChangeset
for help on using the changeset viewer.