Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: Debug
in English.
Hello, i have a problem when you use the between restriction, i found a problem when i search some objects by a date lapse, and come of then does not came from persistence (hibernate), but when i copy the sql to my query browser, the rows appear, but in my application doesen't appear. I found that the log format of a Date type is not completed, it miss the MILLISECOND, and this was the reason why my objects where not loaded.
En Español
Yo iba a buscar objetos a una tabla filtrando por un campo de fecha(java.util.Date), y no me los traia, yo buscaba el SQL en el log, luego me fijaba los campos que bindiaba y copiaba eso en un query browser, al ejecutar la consulta desde el query browser, mostraba todo, pero desde hibernate no, luego me di cuenta, que en la DB aparecian los milisegundos, pero en el log del hibernate no, entonces, revisé mi código y faltaba setear los milisegundos, una vez seteados, anduvo bien.
Saludos.!
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html