I have a Spring Data LDAP repository like this:
package x.y.z.repository;
import org.springframework.data.ldap.repository.LdapRepository;
import org.springframework.stereotype.Repository;
import x.y.z.domain.User;
@Repository
public interface UserRepository extends LdapRepository<User>{
User findByUserId(String userId);
}
Unfortunately I have more than one LDAP connection in the spring context. How can I define which LDAPTemplate
belongs to which Repository
? I have not found anything in the documentation.