de.adorsys.multibanking.impl.AnonymizedBookingRepositoryImpl Maven / Gradle / Ivy
package de.adorsys.multibanking.impl;
import de.adorsys.multibanking.domain.AnonymizedBookingEntity;
import de.adorsys.multibanking.pers.spi.repository.AnonymizedBookingRepositoryIf;
import de.adorsys.multibanking.repository.AnonymizedBookingRepositoryMongodb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import java.util.List;
@Profile({"mongo", "fongo"})
@Service
public class AnonymizedBookingRepositoryImpl implements AnonymizedBookingRepositoryIf {
@Autowired
private AnonymizedBookingRepositoryMongodb anonymizdBookingRepository;
@Override
public List save(List bookingEntities) {
return anonymizdBookingRepository.saveAll(bookingEntities);
}
}