Forums Register Login

Hibernate query returning 0 records

+Pie Number of slices to send: Send
I have an application that uses hibernate to get data from a MySQL database. I've enabled hibernate logging, and can see the query that is being generated. When I copy that query into the MySQL Query Browser and plug in the same values as are passed to my code, I get a bunch of records (867); when the code runs, however, it returns 0 records. The same code works with other data values. Any idea how to debug this?

Thanks,

Gene
+Pie Number of slices to send: Send
Looks like the problem was that I wasn't querying with the data that the system was actually using because of a logic flaw. Glad I caught it now!

Gene
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1096 times.
Similar Threads
Problem with hibernate
Getting All Records in Hibernate
hibernate_struts_tomcat
Hibernate Query
PreparedStatement's executeQuery() returning resultset with no rows
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:56:08.