@@ -34,10 +34,6 @@ public interface UserRepository extends PagingAndSortingRepository<User, BigInte
|
||||
|
||||
List<User> findByColleaguesContains(@Param("colleagues") User colleague);
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.querydsl.binding.QuerydslBinderCustomizer#customize(org.springframework.data.querydsl.binding.QuerydslBindings, com.querydsl.core.types.EntityPath)
|
||||
*/
|
||||
@Override
|
||||
default void customize(QuerydslBindings bindings, QUser root) {
|
||||
bindings.bind(root.firstname).first((path, value) -> path.containsIgnoreCase(value));
|
||||
|
||||
@@ -32,28 +32,16 @@ import com.mongodb.client.MongoClients;
|
||||
@EnableMongoAuditing
|
||||
public class MongoDbRepositoryConfig extends AbstractMongoClientConfiguration {
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.mongodb.config.AbstractMongoConfiguration#getDatabaseName()
|
||||
*/
|
||||
@Override
|
||||
protected String getDatabaseName() {
|
||||
return "spring-data-rest-sample";
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.mongodb.config.AbstractMongoConfiguration#getMappingBasePackage()
|
||||
*/
|
||||
@Override
|
||||
protected String getMappingBasePackage() {
|
||||
return "";
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.mongodb.config.AbstractMongoConfiguration#mongo()
|
||||
*/
|
||||
@Override
|
||||
public MongoClient mongoClient() {
|
||||
return MongoClients.create();
|
||||
|
||||
@@ -128,10 +128,6 @@ class MongoWebTests extends CommonWebTests {
|
||||
userRepository.deleteAll();
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#expectedRootLinkRels()
|
||||
*/
|
||||
@Override
|
||||
protected Iterable<LinkRelation> expectedRootLinkRels() {
|
||||
return LinkRelation.manyOf("profiles", "users");
|
||||
|
||||
Reference in New Issue
Block a user