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

Jaideep Vasudevan (JIRA) noreply at atlassian.com
Tue Nov 21 18:31:04 EST 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2253?page=comments#action_25398 ] 

Jaideep Vasudevan commented on HHH-2253:
----------------------------------------

Hi Steve, 

I wanted to know how to query a collection.

Hibernate support team said there is no option and asked me to ask for this enhancement. 

you can close this. thanks.

 -- jaideep

> 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