Skip to content

Commit ac412b0

Browse files
committed
Polishing.
1 parent 886bfaa commit ac412b0

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/config/EnableJpaRepositories.java

+5-16
Original file line numberDiff line numberDiff line change
@@ -84,46 +84,39 @@
8484
* Returns the postfix to be used when looking up custom repository implementations. Defaults to {@literal Impl}. So
8585
* for a repository named {@code PersonRepository} the corresponding implementation class will be looked up scanning
8686
* for {@code PersonRepositoryImpl}.
87-
*
88-
* @return
8987
*/
9088
String repositoryImplementationPostfix() default "Impl";
9189

9290
/**
9391
* Configures the location of where to find the Spring Data named queries properties file. Will default to
9492
* {@code META-INF/jpa-named-queries.properties}.
95-
*
96-
* @return
9793
*/
9894
String namedQueriesLocation() default "";
9995

10096
/**
10197
* Returns the key of the {@link QueryLookupStrategy} to be used for lookup queries for query methods. Defaults to
10298
* {@link Key#CREATE_IF_NOT_FOUND}.
103-
*
104-
* @return
10599
*/
106100
Key queryLookupStrategy() default Key.CREATE_IF_NOT_FOUND;
107101

108102
/**
109103
* Returns the {@link FactoryBean} class to be used for each repository instance. Defaults to
110104
* {@link JpaRepositoryFactoryBean}.
111-
*
112-
* @return
113105
*/
114106
Class<?> repositoryFactoryBeanClass() default JpaRepositoryFactoryBean.class;
115107

116108
/**
117109
* Configure the repository base class to be used to create repository proxies for this particular configuration.
118110
*
119-
* @return
120111
* @since 1.9
121112
*/
122113
Class<?> repositoryBaseClass() default DefaultRepositoryBaseClass.class;
123114

124115
/**
125116
* Configure a specific {@link BeanNameGenerator} to be used when creating the repository beans.
126-
* @return the {@link BeanNameGenerator} to be used or the base {@link BeanNameGenerator} interface to indicate context default.
117+
*
118+
* @return the {@link BeanNameGenerator} to be used or the base {@link BeanNameGenerator} interface to indicate
119+
* context default.
127120
* @since 3.4
128121
*/
129122
Class<? extends BeanNameGenerator> nameGenerator() default BeanNameGenerator.class;
@@ -133,22 +126,18 @@
133126
/**
134127
* Configures the name of the {@link EntityManagerFactory} bean definition to be used to create repositories
135128
* discovered through this annotation. Defaults to {@code entityManagerFactory}.
136-
*
137-
* @return
138129
*/
139130
String entityManagerFactoryRef() default "entityManagerFactory";
140131

141132
/**
142133
* Configures the name of the {@link PlatformTransactionManager} bean definition to be used to create repositories
143134
* discovered through this annotation. Defaults to {@code transactionManager}.
144-
*
145-
* @return
146135
*/
147136
String transactionManagerRef() default "transactionManager";
148137

149138
/**
150139
* Configures whether nested repository-interfaces (e.g. defined as inner classes) should be discovered by the
151-
* repositories infrastructure.
140+
* repository infrastructure.
152141
*/
153142
boolean considerNestedRepositories() default false;
154143

@@ -170,7 +159,6 @@
170159
* completed its bootstrap. {@link BootstrapMode#DEFERRED} is fundamentally the same as {@link BootstrapMode#LAZY},
171160
* but triggers repository initialization when the application context finishes its bootstrap.
172161
*
173-
* @return
174162
* @since 2.1
175163
*/
176164
BootstrapMode bootstrapMode() default BootstrapMode.DEFAULT;
@@ -187,6 +175,7 @@
187175
* Configures the {@link QueryEnhancerSelector} to select a query enhancer for query introspection and transformation.
188176
*
189177
* @return a {@link QueryEnhancerSelector} class providing a no-args constructor.
178+
* @since 4.0
190179
*/
191180
Class<? extends QueryEnhancerSelector> queryEnhancerSelector() default QueryEnhancerSelector.DefaultQueryEnhancerSelector.class;
192181
}

0 commit comments

Comments
 (0)