File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/springframework/data/r2dbc/core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,12 @@ public interface R2dbcEntityOperations extends FluentR2dbcOperations {
102
102
<T > Flux <T > select (Query query , Class <T > entityClass ) throws DataAccessException ;
103
103
104
104
/**
105
- * Execute a {@code SELECT} query and convert the resulting item to an entity.
105
+ * Execute a {@code SELECT} query and convert the resulting item to an entity ensuring exactly one result .
106
106
*
107
107
* @param query must not be {@literal null}.
108
108
* @param entityClass The entity type must not be {@literal null}.
109
- * @return the result object returned by the action or {@link Mono#empty()}.
109
+ * @return exactly one result or {@link Mono#empty()} if no match found.
110
+ * @throws org.springframework.dao.IncorrectResultSizeDataAccessException if more than one match found.
110
111
* @throws DataAccessException if there is any problem issuing the execution.
111
112
*/
112
113
<T > Mono <T > selectOne (Query query , Class <T > entityClass ) throws DataAccessException ;
You can’t perform that action at this time.
0 commit comments