It is not SmartClient error. Generated HQL query is correct and exception is thrown from Hibernate's code:
Code:
fromElement = dot.getImpliedJoin(); // Line 395 fromElement.setAllPropertyFetch( propertyFetch != null ); // line 396 <-- exception is here
you have valueXPath="dataFlagsets/BMobileServiceAdvisor/locFlags/name"
This means that "LocCitybranches" entity has to have property "dataFlagsets" of type (I guess) "Flagsets".
"Flagsets" has to be mapped entity and have property "BMobileServiceAdvisor" of type (guessing again) "MobileServiceAdvisor".
"MobileServiceAdvisor" has to be mapped entity and has property "locFlags" of type (guessing) "Flags".
"Flags" has to have property "name".
For this one setting you have to have these mapped entities with defined relations at JPA level:
LocCitybranches
Flagsets
MobileServiceAdvisor
Flags
You have to check all relations.
I would suggest to leave only one field with valueXPath setting. Comment out all others to narrow your search. If request fails - check for relations.
Best regards,
Alius
Leave a comment: