Example usage for org.springframework.data.rest.core.config RepositoryRestConfiguration withEntityLookup

List of usage examples for org.springframework.data.rest.core.config RepositoryRestConfiguration withEntityLookup

Introduction

In this page you can find the example usage for org.springframework.data.rest.core.config RepositoryRestConfiguration withEntityLookup.

Prototype

public EntityLookupRegistrar withEntityLookup() 

Source Link

Document

Returns the EntityLookupRegistrar to create custom EntityLookup instances registered in the configuration.

Usage

From source file:example.springdata.rest.uris.SpringDataRestCustomization.java

@Override
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config) {

    config.withEntityLookup().//
            forRepository(UserRepository.class, User::getUsername, UserRepository::findByUsername);
}