[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2253?page=c...
]
Steve Ebersole commented on HHH-2253:
-------------------------------------
You just want a better error message? What you are trying is not valid syntax. I think
what you want is:
select r.Id, elements( r.address ) from Foo r where r.Id in (:ids) order by r.Id
Well I think what you *really* want is to get back a list of [id, array] pairs which is
totally not supported...
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira