I really appreciate the help.
But, that last pointer did not help. I have now simplified the query to just the simplest possible. I am now just trying to get the UserStories where there is a property mapped by KEY1.
Here is the method that I 'expect' to be called on the UserStory class. There is a corresponding setter as well.
The new query is attached as well
I did find this forum topic that was close to my issue.
http://forum.hibernate.org/viewtopic.ph ... referenced
Code:
String query =
"from com.esage.agility.domain.UserStory us where index(us.propertiesMapped.indices) in 'KEY1 ";
vs
Code:
select req
from QuoteRequest req
join req.coverSheet.actions action
where action.parameter.stringValue = '123456'
and index(action) = 'Provider_In'
I had to put the indices on the end of my propertyMapped reference. Otherwise Hib was complaining that an elements or indices was expected after the index.
Code:
public Map getPropertiesMapped() {
return propertiesMapped;
}
Here is the error... same as before.
net.sf.hibernate.QueryException: dereferenced: userstory0_.propertiesMapped.indices.index [from com.esage.agility.domain.UserStory us where index(us.propertiesMapped.indices) in 'CUSTOM_PROPERTY_236' ]
at net.sf.hibernate.hql.PathExpressionParser.token(PathExpressionParser.java:140)