diff --git a/src/main/java/org/springframework/data/ldap/repository/config/LdapRepositoryConfigurationExtension.java b/src/main/java/org/springframework/data/ldap/repository/config/LdapRepositoryConfigurationExtension.java index 0049352..4e27651 100644 --- a/src/main/java/org/springframework/data/ldap/repository/config/LdapRepositoryConfigurationExtension.java +++ b/src/main/java/org/springframework/data/ldap/repository/config/LdapRepositoryConfigurationExtension.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,7 +73,7 @@ public class LdapRepositoryConfigurationExtension extends RepositoryConfiguratio */ @Override protected Collection> getIdentifyingAnnotations() { - return Collections.> singleton(Entry.class); + return Collections.singleton(Entry.class); } /* @@ -82,7 +82,7 @@ public class LdapRepositoryConfigurationExtension extends RepositoryConfiguratio */ @Override protected Collection> getIdentifyingTypes() { - return Collections.> singleton(LdapRepository.class); + return Collections.singleton(LdapRepository.class); } /* (non-Javadoc) diff --git a/src/main/java/org/springframework/data/ldap/repository/support/LdapAnnotationProcessor.java b/src/main/java/org/springframework/data/ldap/repository/support/LdapAnnotationProcessor.java index 4e66941..3087c23 100644 --- a/src/main/java/org/springframework/data/ldap/repository/support/LdapAnnotationProcessor.java +++ b/src/main/java/org/springframework/data/ldap/repository/support/LdapAnnotationProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ import com.querydsl.core.annotations.QueryEntities; * * @author Mattias Hellborg Arthursson * @author Eddu Melendez + * @author Mark Paluch */ @SupportedAnnotationTypes("org.springframework.ldap.odm.annotations.*") @SupportedSourceVersion(SourceVersion.RELEASE_6) @@ -49,7 +50,7 @@ public class LdapAnnotationProcessor extends AbstractQuerydslProcessor { processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, "Running " + getClass().getSimpleName()); DefaultConfiguration configuration = new DefaultLdapAnnotationProcessorConfiguration(roundEnv, - processingEnv.getOptions(), Collections. emptySet(), QueryEntities.class, Entry.class, null, null, null, + processingEnv.getOptions(), Collections.emptySet(), QueryEntities.class, Entry.class, null, null, null, Transient.class); configuration.setUseFields(true); configuration.setUseGetters(false); diff --git a/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapQuery.java b/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapQuery.java index 1cc1831..47b6994 100644 --- a/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapQuery.java +++ b/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapQuery.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 the original author or authors. + * Copyright 2016-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ import com.querydsl.core.types.Predicate; * * @author Mattias Hellborg Arthursson * @author Eddu Melendez + * @author Mark Paluch */ public class QueryDslLdapQuery implements FilteredClause> { @@ -41,7 +42,7 @@ public class QueryDslLdapQuery implements FilteredClause private final Class entityType; private final LdapSerializer filterGenerator; - private QueryMixin> queryMixin = new QueryMixin>(this, + private QueryMixin> queryMixin = new QueryMixin<>(this, new DefaultQueryMetadata().noValidate()); /** diff --git a/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapRepository.java b/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapRepository.java index 22770c1..9a70069 100644 --- a/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapRepository.java +++ b/src/main/java/org/springframework/data/ldap/repository/support/QueryDslLdapRepository.java @@ -92,7 +92,7 @@ public class QueryDslLdapRepository extends SimpleLdapRepository implement } private QueryDslLdapQuery queryFor(Predicate predicate) { - return new QueryDslLdapQuery(ldapOperations, entityType).where(predicate); + return new QueryDslLdapQuery<>(ldapOperations, entityType).where(predicate); } /* (non-Javadoc)