I have narrowed down the issue like this:
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 = :IDThe above function returns an empty string array object. Therefore concreteQueryStrings = [];
Because of this length = concreteQueryStrings.length is 0;
Due to this the following two sad events happen. parameterMetadata = new ParameterMetadata( null, null ); returnMetadata = null;
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