-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
area/hibernate-ormHibernate ORMHibernate ORMarea/panachekind/enhancementNew feature or requestNew feature or requesttriage/needs-feedbackWe are waiting for feedback.We are waiting for feedback.
Description
Description
findAll().list() is a two-step for “get all”
I have to use repo.findAll().list() for “list all”. Classic Panache Repository had listAll(). The two-step call is consistent with a query-builder style (findAll() returns something pageable/filterable) but forces an extra method call for the very common “get all” case.
// AuthorResource.java
return repo.findAll().list(); // two steps; listAll() would be oneImplementation ideas
Offer a convenience method such as listAll() that returns List<Entity> (blocking) or Uni<List<Entity>> (reactive), implemented as findAll().list(), so simple list endpoints don’t need the extra step.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/hibernate-ormHibernate ORMHibernate ORMarea/panachekind/enhancementNew feature or requestNew feature or requesttriage/needs-feedbackWe are waiting for feedback.We are waiting for feedback.