I have narrowed down the issue like this:
1. final String[] concreteQueryStrings = QuerySplitter.concreteQueries( hql, factory ); is invoked inside session.createQuery() hql param passed to it is = FROM com.persistence.hibernate.pojo.CC WHERE ID = :ID
2. The above function returns and empty string array object. Therefore concreteQueryStrings = [];
3. Because of this length = concreteQueryStrings.length is 0;
4. Due to this the following two sad events happen. parameterMetadata = new ParameterMetadata( null, null ); returnMetadata = null;
5. This is causing query.setParameter("ID", 5); to throw QueryParameterException. This is obviously wrong. What is wrong with my HQL that is causing concreteQueries() to return blanks?
BTW I have hibernate 3.4.
THanks -Anup
|