[ https://issues.apache.org/jira/browse/CAUSEWAY-3779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855676#comment-17855676 ]
Daniel Keir Haywood commented on CAUSEWAY-3779: ----------------------------------------------- But this code might work: // Assume we have a list of IDs List<Long> ids = Arrays.asList(1L, 2L, 3L, ...); // Create a JDOQL query PersistenceManager pm = pmf.getPersistenceManager(); Query<MyEntity> query = pm.newQuery(MyEntity.class, ":ids.contains(id)"); query.declareParameters("List ids"); // Execute the query List<MyEntity> entities = (List<MyEntity>) query.execute(ids); > Support for Query By Id(s) > -------------------------- > > Key: CAUSEWAY-3779 > URL: https://issues.apache.org/jira/browse/CAUSEWAY-3779 > Project: Causeway > Issue Type: Improvement > Components: Persistence JDO, Persistence JPA > Reporter: Andi Huber > Assignee: Andi Huber > Priority: Major > Fix For: 2.1.0, 3.1.0 > > > Given some stringified Entity IDs, fetch me all the entities with those IDs > in one bulk. -- This message was sent by Atlassian Jira (v8.20.10#820010)