@@ -147,6 +147,8 @@ public interface SelectionQuery<R> extends CommonQueryContract {
147
147
* {@code Object[]}.
148
148
*
149
149
* @return the results as a list
150
+ *
151
+ * @apiNote Synonym for {@link #list()}
150
152
*/
151
153
default List <R > getResultList () {
152
154
return list ();
@@ -179,9 +181,7 @@ default List<R> getResultList() {
179
181
*
180
182
* @return The results as a {@link Stream}
181
183
*
182
- * @implNote The default implementation defined here simply returns
183
- * {@link #list()}{@code .stream()}. Concrete implementations
184
- * may be more efficient.
184
+ * @apiNote Synonym for {@link #stream()}
185
185
*/
186
186
default Stream <R > getResultStream () {
187
187
return stream ();
@@ -198,6 +198,10 @@ default Stream<R> getResultStream() {
198
198
*
199
199
* @return The results as a {@link Stream}
200
200
*
201
+ * @implNote The default implementation defined here simply returns
202
+ * {@link #list()}{@link List#stream() .stream()}.
203
+ * Overriding implementations are typically more efficient.
204
+ *
201
205
* @since 5.2
202
206
*/
203
207
default Stream <R > stream () {
@@ -291,9 +295,9 @@ default Stream<R> stream() {
291
295
SelectionQuery <R > setEntityGraph (EntityGraph <R > graph , GraphSemantic semantic );
292
296
293
297
/**
294
- * Enable the {@link org.hibernate.annotations.FetchProfile fetch profile}
295
- * for this query. If the requested fetch profile is already enabled,
296
- * the call has no effect.
298
+ * Enable the {@linkplain org.hibernate.annotations.FetchProfile fetch
299
+ * profile} with the given name during execution of this query. If the
300
+ * requested fetch profile is already enabled, the call has no effect.
297
301
* <p>
298
302
* This is an alternative way to specify the associations which
299
303
* should be fetched as part of the initial query.
@@ -308,9 +312,9 @@ default Stream<R> stream() {
308
312
SelectionQuery <R > enableFetchProfile (String profileName );
309
313
310
314
/**
311
- * Disable the {@link org.hibernate.annotations.FetchProfile fetch profile}
312
- * with the given name in this session. If the requested fetch profile
313
- * is not currently enabled, the call has no effect.
315
+ * Disable the {@linkplain org.hibernate.annotations.FetchProfile fetch
316
+ * profile} with the given name in this session. If the fetch profile is
317
+ * not currently enabled, the call has no effect.
314
318
*
315
319
* @param profileName the name of the fetch profile to be disabled
316
320
*
0 commit comments