Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Limit is not recognized by query builder #23

Closed
cleancoderocker opened this issue Jun 2, 2016 · 0 comments
Closed

Limit is not recognized by query builder #23

cleancoderocker opened this issue Jun 2, 2016 · 0 comments

Comments

@cleancoderocker
Copy link
Collaborator

In the code below not only five entities are returned, but all entities:

let cb = entityManager.getCriteriaBuilder();
let cq = cb.createQuery();
let operation = cb.equal('somename', 'somevalue');
let limit = 5;
let criteriaQuery = cq.where(operation, limit);
entityManager.findAll((error, result) => {}, criteriaQuery);  // Finds all entities
cleancoderocker added a commit that referenced this issue Jun 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant