Ignore:
Timestamp:
07/26/23 19:26:35 (12 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Parents:
e02787e
Message:

Added transactional methods to secure the database integrity and refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/service/PartService.java

    re02787e r2a552fe  
    11package com.example.autopartz.service;
    22
     3import com.example.autopartz.model.Car;
     4import com.example.autopartz.model.Category;
    35import com.example.autopartz.model.Part;
    46
     
    79public interface PartService {
    810    List<Part> findAll();
     11
    912    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    );
    1018}
Note: See TracChangeset for help on using the changeset viewer.