File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
src/main/java/org/springframework/data/repository Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 44
44
import org .springframework .data .repository .config .DefaultRepositoryConfiguration ;
45
45
import org .springframework .data .repository .config .RepositoryBeanNameGenerator ;
46
46
import org .springframework .data .repository .config .SpringDataAnnotationBeanNameGenerator ;
47
+ import org .springframework .data .repository .query .QueryLookupStrategy ;
47
48
import org .springframework .lang .Nullable ;
48
49
import org .springframework .util .Assert ;
49
50
import org .springframework .util .ClassUtils ;
@@ -429,5 +430,11 @@ static enum DefaultCdiRepositoryConfiguration implements CdiRepositoryConfigurat
429
430
public String getRepositoryImplementationPostfix () {
430
431
return DefaultRepositoryConfiguration .DEFAULT_REPOSITORY_IMPLEMENTATION_POSTFIX ;
431
432
}
433
+
434
+ @ Override
435
+ public QueryLookupStrategy .Key getQueryLookupStrategy () {
436
+ return DefaultRepositoryConfiguration .DEFAULT_QUERY_LOOKUP_STRATEGY ;
437
+ }
438
+
432
439
}
433
440
}
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .data .repository .cdi ;
18
18
19
+ import org .springframework .data .repository .query .QueryLookupStrategy ;
20
+
19
21
/**
20
22
* Interface containing the configurable options for the Spring Data repository subsystem using CDI.
21
23
*
@@ -29,4 +31,13 @@ public interface CdiRepositoryConfiguration {
29
31
* @return the postfix to use, must not be {@literal null}.
30
32
*/
31
33
String getRepositoryImplementationPostfix ();
34
+
35
+
36
+ /**
37
+ * Return the strategy to lookup queries
38
+ *
39
+ * @return the lookup strategy to use
40
+ */
41
+ QueryLookupStrategy .Key getQueryLookupStrategy ();
42
+
32
43
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class DefaultRepositoryConfiguration<T extends RepositoryConfigurationSou
41
41
implements RepositoryConfiguration <T > {
42
42
43
43
public static final String DEFAULT_REPOSITORY_IMPLEMENTATION_POSTFIX = "Impl" ;
44
- private static final Key DEFAULT_QUERY_LOOKUP_STRATEGY = Key .CREATE_IF_NOT_FOUND ;
44
+ public static final Key DEFAULT_QUERY_LOOKUP_STRATEGY = Key .CREATE_IF_NOT_FOUND ;
45
45
46
46
private final @ NonNull T configurationSource ;
47
47
private final @ NonNull BeanDefinition definition ;
You can’t perform that action at this time.
0 commit comments