stepping through the hibernate code, i noticed something. The
queryString that is being passed into the StringTokenizer is
actually the query name from the mapping document above instead of the query itself, or, in other words, it looks like it's parsing the following string for query parameters:
"test.by.test.containing.string"
Maybe the syntax of my mapping is incorrect???
AbstractQueryImpl:
initParameterBookKeeping()
lines 455 - 467
Code:
private void initParameterBookKeeping() {
StringTokenizer st = new StringTokenizer(queryString, ParserHelper.HQL_SEPARATORS);
Set result = new HashSet();
while ( st.hasMoreTokens() ) {
String string = st.nextToken();
if( string.startsWith(ParserHelper.HQL_VARIABLE_PREFIX) ) {
result.add( string.substring(1) );
}
}
actualNamedParameters = result;
positionalParameterCount = StringHelper.countUnquoted(queryString, '?');
}