-->
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: total objects hydrated: 0 - why?
PostPosted: Thu Apr 28, 2005 11:14 am 
Newbie

Joined: Mon Apr 25, 2005 4:21 pm
Posts: 7
Hi - I'm using Hibernate 3.0.2 (though 3.0.1 did the same thing) talking to:

Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
Oracle JDBC driver
10.1.0.2.0

I'm getting the following:

Code:
DEBUG [org.hibernate.loader.Loader] result set row: 0
DEBUG [org.hibernate.type.LongType] returning '79' as column: PROMPT1_
DEBUG [org.hibernate.type.StringType] returning 'Test Prompt' as column: PROMPT2_
DEBUG [org.hibernate.type.StringType] returning 'Column data' as column: PROMPT3_
DEBUG [org.hibernate.type.StringType] returning 'M' as column: PROMPT4_
DEBUG [org.hibernate.type.StringType] returning 'FFFFTFF' as column: DFLT5_
DEBUG [org.hibernate.type.StringType] returning null as column: GROUP6_
DEBUG [org.hibernate.loader.Loader] result row: null
DEBUG [org.hibernate.loader.Loader] done processing result set (1 rows)
DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
DEBUG [org.hibernate.jdbc.AbstractBatcher] closing statement
DEBUG [org.hibernate.loader.Loader] total objects hydrated: 0
DEBUG [org.hibernate.engine.PersistenceContext] initializing non-lazy collections



I'm sure there is something I'm doing but basically the result of a session.createQuery() is returning null. If I change the query to return a list it returns a large list of null's. My query is just a "from ObjectName". It is obviously getting the data but it never creates the object for me. What part am I missing?

Any insight would be appreciated.


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.