mirror of
https://github.com/google/nomulus
synced 2026-09-01 05:37:08 +00:00
Fix RegistryJpaIO.Read problem with large data (#1161)
* Fix RegistryJpaIO.Read problem with large data The read connector needs to detach loaded entities. This is now the default behavior in QueryComposer Also removed the 'transaction mode' property from the Read connector. There are no obvious use cases for non-transaction query, and implementation is not straightforward with the current code base. Also changed the return type of QueryComposer.list() to ImmutableList.
This commit is contained in:
@@ -83,7 +83,7 @@ public class RegistryJpaReadTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void nonTransactionalQuery() {
|
||||
void jpaRead() {
|
||||
Read<ContactResource, String> read =
|
||||
RegistryJpaIO.read(
|
||||
(JpaTransactionManager jpaTm) -> jpaTm.createQueryComposer(ContactResource.class),
|
||||
|
||||
Reference in New Issue
Block a user