Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider an API similar to CrudRepository in Spring Data #697

Open
jzheaux opened this issue Aug 16, 2022 · 0 comments
Open

Consider an API similar to CrudRepository in Spring Data #697

jzheaux opened this issue Aug 16, 2022 · 0 comments

Comments

@jzheaux
Copy link
Contributor

jzheaux commented Aug 16, 2022

LdapTemplate includes support for ODM. Instead of porting this over to LdapClient, it's worth considering placing it into something that follows the Spring Data model like so:

public class SpringLdapRepository<T> {
    private final LdapClient client;
    private final ObjectMappingDirectory odm = ...;

    public List<T> findAll() { 
        // ...
    }
}
@jzheaux jzheaux mentioned this issue Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant