결론 Collectors.toMap 를 사용하자 과정 List shops 로 매장리스트를 가져오고 Key = shop_id Value = Shop shop 이렇게 map을 만들어서 key 로 해당 객체를 이용할 수 있는 방법이 필요했다. @Transactional public void setDefaultSyncEnabledBulk(List shopProductDtos) { Map shopMap = shopService.getAllShop() .stream() .collect(Collectors.toMap(shop -> shop.getId(), shop -> shop)); // bulk insert List shopProducts = shopProductDtos.stream() .map(shopProduc..