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
|