omnifaces / omnipersistence

Utilities for JPA, JDBC and DataSources
Other
31 stars 12 forks source link

Add and use CriteriaQuery instead of AbstractQuery based QueryBuilder for list/find/etc #25

Closed Edubits closed 5 years ago

Edubits commented 5 years ago

getPage methods use a QueryBuilder which is using AbstractQuery to enable reuse for the count query. However for list/find/etc methods using CriteriaQuery is more useful as it allows e.g. ordering of the results out of the box and prevents casting on the calling side.