-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NullableType Log
PostPosted: Sat Oct 14, 2006 11:02 am 
Newbie

Joined: Sat Oct 14, 2006 10:49 am
Posts: 3
Location: Quilmes
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.