-->
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: problem with select
PostPosted: Thu Jul 27, 2006 10:21 am 
Beginner
Beginner

Joined: Thu Jun 22, 2006 8:56 am
Posts: 22
Hello,

i do have one problem that i dont understand:
When i debug this piece i see that it does not go into while but i know that i have this element in my db.

Code:
Iterator destination = session.createQuery("select source.name from Source as source where source.id ='10'" ).list().iterator();

while(destination.hasNext()){
}


I dont get any errors, please help,

thank you,
seven-12


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 27, 2006 6:13 pm 
Expert
Expert

Joined: Fri May 13, 2005 5:56 pm
Posts: 308
Location: Santa Barbara, California, USA
is ID marked as varchar (or some other text element) or an int (or some other numerical element) in the db?


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.