Example usage for org.springframework.data.mongodb.repository MongoRepository interface-usage

List of usage examples for org.springframework.data.mongodb.repository MongoRepository interface-usage

Introduction

In this page you can find the example usage for org.springframework.data.mongodb.repository MongoRepository interface-usage.

Usage

From source file org.swarmcom.jsynapse.dao.AccessTokenRepository.java

public interface AccessTokenRepository extends MongoRepository<AccessToken, String> {
    AccessToken findByToken(String token);

    AccessToken findByUserId(String userId);
}

From source file org.statefulj.webapp.repo.NotificationRepository.java

public interface NotificationRepository extends MongoRepository<Notification, String> {

}

From source file org.tylproject.data.mongo.CustomerRepository.java

public interface CustomerRepository extends MongoRepository<Customer, String> {

    public Customer findByFirstName(String firstName);

    public List<Customer> findByLastName(String lastName);

From source file com.wujun.learning.service.CustomerRepository.java

public interface CustomerRepository extends MongoRepository<Customer, String> {

    Customer findByFirstName(String firstName);

    List<Customer> findByLastName(String lastName);

From source file net.cpollet.shoppist.da.repository.ShopRepository.java

/**
 * @author Christophe Pollet
 */
public interface ShopRepository extends MongoRepository<Shop, String> {
}

From source file net.cpollet.shoppist.da.repository.ProductRepository.java

/**
 * @author Christophe Pollet
 */
public interface ProductRepository extends MongoRepository<Product, String> {
}

From source file org.maodian.flyingcat.im.repository.AccountRepository.java

/**
 * @author Cole Wen
 *
 */
public interface AccountRepository extends MongoRepository<Account, String>, AccountRepositoryCustom {

From source file org.openapis.example.common.Repository.java

@NoRepositoryBean
public interface Repository<T> extends MongoRepository<T, String> {
}

From source file io.github.autsia.crowly.repositories.UserRepository.java

/**
 * Created by Dmytro on 31.12.13 at 16:17
 * Project: crowly
 */
public interface UserRepository extends MongoRepository<CrowlyUser, String> {

From source file com.vladmihalcea.mongo.dao.ProductRepository.java

/**
 * ProductRepository - Product Repository
 *
 * @author Vlad Mihalcea
 */
public interface ProductRepository extends MongoRepository<Product, Long>, ProductCustomRepository {