Ignore:
Timestamp:
01/07/23 18:37:26 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
5e7345e
Parents:
37966cf
Message:

Admin views for adding things to the database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/controller/PartController.java

    r37966cf r84652fb  
    8989            model.addAttribute("hasError", false);
    9090            CarSample cs = carSampleRepository.findById((Integer) session.getAttribute("carVin")).get();
    91             Integer idCM = cs.getCar().getCar_manufacturer().getID_car_manufacturer();
     91            Integer idCM = cs.getCar().getCar_manufacturer().getId();
    9292            List<RsForCm> rsForCm = rsForCmRepository.findAllByCmid(idCM);
    9393            List<RepairShop> newRepairShopList = new ArrayList<>();
Note: See TracChangeset for help on using the changeset viewer.