-->
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.  [ 2 posts ] 
Author Message
 Post subject: newbie trouble.
PostPosted: Tue Jul 25, 2006 10:42 am 
Newbie

Joined: Tue Jul 25, 2006 10:30 am
Posts: 1
Hello,

Hibernate version: 3

Mapping documents:

Code between sessionFactory.openSession() and session.close():
result =
session.createQuery("from MyClazz where myProperty='someValue'" )
.list();

HibernateUtil.closeSession();

System.out.println(result.size());

for(Iterator iter = result.iter(); iter.hasNext();){

MyClazz clazz = (MyClazz)iter.next();
System.out.println("property value: " + clazz.getSomeValue());
}



Full stack trace of any exception that occurs:

Name and version of the database you are using:Oracle 9i

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


I'm a hibernate newbie and I'm to be running into an issue where my query result list.size() is 1, but when I try to print the property values in that single object, all the values are null. Any ideas or suggestions would be appreciated.

Thank you in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 4:35 pm 
Beginner
Beginner

Joined: Tue Jan 06, 2004 4:51 pm
Posts: 48
Please show the mapping of your class.


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

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.