Hi , I hope Spring Data JPA support Kotlin's Flow like this :
interfaceUserDao {
@Query("select u from User u where ....")
@Hints("batch=:batch") // something like thatfunfindUsers(@Param(name="batch") batchSize:Int): Flow<User>
}
There should be some hint in the @Query annotation
Issue Links:
DATACMNS-1508 Add support for Coroutines repositories
("duplicates")
The text was updated successfully, but these errors were encountered:
Kotlin's Flow is a Coroutine type. Allowing that sort of type lets users expect Coroutine-like behavior which is clearly not available from JPA as all I/O is blocking without a true push-data structure experience.
Please instead use Stream or Spring Data R2DBC which can return Flow as part of its Coroutines support
smallufo opened DATACMNS-1608 and commented
Hi , I hope Spring Data JPA support Kotlin's Flow like this :
There should be some
hint
in the@Query
annotationIssue Links:
("duplicates")
The text was updated successfully, but these errors were encountered: