Message:
The following issue has been closed.
Resolver: Gavin King
Date: Sun, 3 Aug 2003 2:08 AM
This is now implemented, as:
select mapElement
from Foo foo
join foo.map mapElement
where index(mapElement) = 'foo'
The index() function may even appear in the select clause.
Note that path expressions with [] may still not appear in the select or from clauses.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-38
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-38
Summary: HQL access to collection members by [index]
Type: Improvement
Status: Closed
Priority: Major
Resolution: FIXED
Project: Hibernate2
Fix Fors:
2.1
Assignee: Gavin King
Reporter: Max Rydahl Andersen
Created: Sat, 3 May 2003 10:23 AM
Updated: Sun, 3 Aug 2003 2:08 AM
Description:
HQL access to collection members
Please extend HQL to allow access to instances
mapped to collections, something like this:
if names is a list:
"select e.names[0] from e in class Element"
if names is a map:
"select e.names("primary") from e in class Element"
Null should be returned if either lookup fails.
http://sourceforge.net/tracker/index.php?func=detail&aid=729882&group_id=40712&atid=428711
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|