de.adorsys.multibanking.repository.BankAccountRepositoryMongodb Maven / Gradle / Ivy
package de.adorsys.multibanking.repository;
import de.adorsys.multibanking.domain.BankAccountEntity;
import org.springframework.context.annotation.Profile;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
/**
* Created by alexg on 07.02.17.
*/
@Repository
@Profile({"mongo", "fongo"})
public interface BankAccountRepositoryMongodb extends MongoRepository {
List findByUserId(String userId);
List findByUserIdAndBankAccessId(String userId, String bankAccessId);
Optional findByUserIdAndId(String userId, String id);
List deleteByBankAccessId(String accessId);
}