문제

I can pull data via

   <cfquery name="keyTypeGroup">
      SELECT DISTINCT keyTypeGroup
      FROM data.keyType
   </cfquery>

I can pull all the data via orm

...
return EntityLoad("data_KeyType");
...

I have tied

   <cfdump var="#ORMExecuteQuery('SELECT DISTINCT KeyGroupType FROM data.KeyType', true)#">

But I get

Error while executing the Hibernate query. 

org.hibernate.hql.ast.QuerySyntaxException: data.KeyType is not mapped [SELECT DISTINCT KeyGroupType FROM data.KeyType]

How should I approach fixing this?

도움이 되었습니까?

해결책

Try

<cfdump var="#ORMExecuteQuery('SELECT DISTINCT KeyGroupType FROM data.keyType', true)#">

I have seen issues with case in situations like this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top