List < Stock > function ( Long arg0 ) { List < StockEntity > loc0 = stockRespository . findByStoreStoreId ( arg0 ) ; List < Stock > loc1 = loc0 . stream ( ) . map ( stock -> convertToDTO ( stock ) ) . collect ( Collectors . toList ( ) ) ; return loc1 ; }
gets all stocks for a store concode_field_sep ProductRepository productRepository concode_elem_sep StockRespository stockRespository concode_elem_sep StoreRepository storeRepository concode_elem_sep ProductService productService concode_field_sep Long addStockToStore concode_elem_sep Optional<Stock> getStockByStoreIdAndProductId concode_elem_sep Stock convertToDTO concode_elem_sep StockEntity convertToEntity