From: <leg...@at...> - 2003-11-13 13:47:14
|
The following issue has been updated: Updater: Gavin King (mailto:ga...@hi...) Date: Thu, 13 Nov 2003 7:46 AM Comment: I'll just change the title :) Changes: summary changed from Allow composite collection element properties in a query/filter. --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-467&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-467 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-467 Summary: Allow composite collection elements in filters Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 beta 5 Assignee: Reporter: Matt Read Created: Wed, 12 Nov 2003 6:31 PM Updated: Thu, 13 Nov 2003 7:46 AM Description: Section 6.2 of the documentation states: "Composite element properties may not appear in a query, unfortunately." The following post from Gavin suggests that this is "probably not very difficult". http://forum.hibernate.org/viewtopic.php?t=924854 I would really be like to do the following: int count = ((Integer) session.filter(myCompositeElementsColection, "select count(*) where myProperty = ?", somePropertyValue, Hibernate.entity(SomePropertyType.class)).iterator().next()).intValue(); Thanks, Matt. --------------------------------------------------------------------- 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 |