source: src/main/java/com/example/autopartz/service/PartService.java@ 2a552fe

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

Added transactional methods to secure the database integrity and refactoring

  • Property mode set to 100644
File size: 542 bytes
Line 
1package com.example.autopartz.service;
2
3import com.example.autopartz.model.Car;
4import com.example.autopartz.model.Category;
5import com.example.autopartz.model.Part;
6
7import java.util.List;
8
9public interface PartService {
10 List<Part> findAll();
11
12 Part findById(Integer id);
13
14 void addPartToWarehouse(Integer partId, Integer quantity, Integer warehouseId);
15
16 void addPart(String name, String description, Integer manufacturer, List<Car> cars, List<Category> categories, Integer warehouse, Integer quantity, Integer amount
17 );
18}
Note: See TracBrowser for help on using the repository browser.