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: [Urgent]HQL Query gets hanged
PostPosted: Thu Apr 07, 2011 1:37 am 
Newbie

Joined: Thu Apr 07, 2011 1:29 am
Posts: 1
I have a select query which is below

private String buildQuery (){

String queryFileinfo = "select S.id , S.fileType" + " from FileInfoBean S where ";
queryFileinfo = queryFileinfo + " S.fileName = '" + fileName + "'";
eturn queryFileinfo;
}

when I try running this query as

String QueryfileInfo = buildQuery();
Query hql = session.createQuery(QueryfileInfo);
Iterator i = null;
try {
System.gc();
i = hql.iterate(); ----------->> The execution hangs at this point
} catch (JDBCConnectionException e) {
uUakjsdbkalk}

The code does not throw any exception, can this be a issue with Hibernate?

Please help , its urgent


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.