[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2253) query of attributes that are Collections of Values and arrays fail

Jaideep Vasudevan (JIRA) noreply at atlassian.com
Fri Nov 17 17:01:04 EST 2006


query of attributes that are Collections of Values and arrays fail
------------------------------------------------------------------

         Key: HHH-2253
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2253
     Project: Hibernate3
        Type: New Feature

  Components: query-hql  
    Versions: 3.1.2    
 Environment: oracle 10g
    Reporter: Jaideep Vasudevan


The following query to return the attribute "address"  that is a collection or an array throws an exception.

select r.Id, r.address from Foo r where r.Id in (:ids) order by r.Id


org.hibernate.QueryException: not an entity [select r.Id, r.address from com.cisco.nm.model.enum.Foo r where r.Id in (:ids) order by r.Id]
	at org.hibernate.hql.ast.tree.FromElementType.renderIdentifierSelect(FromElementType.java:143)
	at org.hibernate.hql.ast.tree.FromElement.renderIdentifierSelect(FromElement.java:167)
	at org.hibernate.hql.ast.tree.SelectClause.renderNonScalarIdentifiers(SelectClause.java:398)

thanks,
jaideep

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list