Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count doesn't returning the good value #206

Closed
tokazio opened this issue Dec 1, 2021 · 1 comment
Closed

Count doesn't returning the good value #206

tokazio opened this issue Dec 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested
Projects
Milestone

Comments

@tokazio
Copy link

tokazio commented Dec 1, 2021

Using hibernate and JPAStreamer
When i do
Streamer.stream(Ett class).count()
It's returning 1 while
Select count(*) from t_ett
Is returning the good number of line in the table.

JPAStreamer use a count(field) instead of count(*) when quering, that's the only difference i've seen.

Is there a cache somewhere ? Why JPAStreamer isn't returning the good value ?

@minborg
Copy link
Contributor

minborg commented Dec 3, 2021

JPAStreamer never caches values internally. If you run the https://github.com/speedment/jpa-streamer-demo/tree/master/hibernate demo on your settings, do you get the same problem?

@minborg minborg added the question Further information is requested label Dec 3, 2021
@julgus julgus added this to To do in 1.1.4 via automation Sep 1, 2022
@julgus julgus added the bug Something isn't working label Sep 1, 2022
@julgus julgus self-assigned this Sep 9, 2022
@julgus julgus moved this from To do to Done in 1.1.4 Sep 9, 2022
@julgus julgus closed this as completed in 1586727 Sep 30, 2022
@julgus julgus added this to the 1.1.0 milestone Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
No open projects
1.1.4
  
Done
Development

No branches or pull requests

3 participants