@Override public void save(CarDTO carDTO) { CarEntity carEntity = carMapper.fromCarDTOToCarEntity(carDTO); BrandEntity brandEntity = brandEntityRepository.findByName(carDTO.brand()) .orElse(new BrandEntity(carDTO.brand())); carEntity.setBrand(brandEntity); carEntityRepository.save(carEntity); } I have a question for this method. It means if brandEntityRepository.findByName() doesn't exist it will create a new one right?