#251 - Add example for Spring Data LDAP.

This commit is contained in:
Mark Paluch
2017-01-27 15:04:15 +01:00
parent a41f69127c
commit 37d5fadf4d
11 changed files with 348 additions and 0 deletions

15
ldap/example/README.md Normal file
View File

@@ -0,0 +1,15 @@
# Spring Data LDAP - Example
This project contains samples of Spring Data (LDAP).
```java
public interface PersonRepository extends CrudRepository<Person, Name> {
List<Person> findByUid(String uid);
List<Person> findByLastnameStartsWith(String prefix);
}
```
The test cases in `PersonRepositoryIntegrationTests` show basic interaction to search, create and modify objects stored in a LDAP repository.