https://github.com/spring-projects/spring-data-ldap
Repository abstraction for Spring LDAP
https://github.com/spring-projects/spring-data-ldap
ddd framework ldap spring-data spring-ldap
Last synced: 10 days ago
JSON representation
Repository abstraction for Spring LDAP
- Host: GitHub
- URL: https://github.com/spring-projects/spring-data-ldap
- Owner: spring-projects
- License: apache-2.0
- Created: 2016-11-21T14:52:43.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2026-02-20T16:50:23.000Z (about 1 month ago)
- Last Synced: 2026-03-06T19:50:10.978Z (17 days ago)
- Topics: ddd, framework, ldap, spring-data, spring-ldap
- Language: Java
- Homepage: http://projects.spring.io/spring-data-ldap
- Size: 2.94 MB
- Stars: 87
- Watchers: 7
- Forks: 59
- Open Issues: 6
-
Metadata Files:
- Readme: .github/README.template.adoc
- Contributing: CONTRIBUTING.adoc
- License: LICENSE.txt
- Security: SECURITY.adoc
Awesome Lists containing this project
README
= Spring Data LDAP image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A["Revved up by Develocity", link="https://ge.spring.io/scans?search.rootProjectNames=Spring Data LDAP"]
The primary goal of the https://projects.spring.io/spring-data[Spring Data] project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.
The Spring Data LDAP project aims to provide familiar and consistent repository abstractions for https://github.com/spring-projects/spring-ldap[Spring LDAP].
== Features
* Spring configuration support using Java-based `@Configuration` classes or an XML namespace.
* Annotation based mapping metadata.
* Automatic implementation of Repository interfaces including support for custom query methods.
* QueryDSL integration to support type-safe queries.
include::https://raw.githubusercontent.com/spring-projects/spring-data-build/refs/heads/main/etc/readme/code-of-conduct.adoc[]
== Getting Started
Here is a quick teaser of an application using Spring Data Repositories in Java:
[source,java]
----
public interface PersonRepository extends CrudRepository {
List findByLastname(String lastname);
List findByFirstnameLike(String firstname);
}
@Service
public class MyService {
private final PersonRepository repository;
public MyService(PersonRepository repository) {
this.repository = repository;
}
public void doWork() {
repository.deleteAll();
Person person = new Person();
person.setFirstname("Rob");
person.setLastname("Winch");
repository.save(person);
List lastNameResults = repository.findByLastname("Winch");
List firstNameResults = repository.findByFirstnameLike("R*");
}
}
@Configuration
@EnableLdapRepositories
class ApplicationConfig {
}
----
include::https://raw.githubusercontent.com/spring-projects/spring-data-build/refs/heads/main/etc/readme/dependencies.adoc[]
include::https://raw.githubusercontent.com/spring-projects/spring-data-build/refs/heads/main/etc/readme/getting-help.adoc[]
include::https://raw.githubusercontent.com/spring-projects/spring-data-build/refs/heads/main/etc/readme/license.adoc[]