From: <leg...@at...> - 2003-11-13 01:41:16
|
The following comment has been added to this issue: Author: Gavin King Created: Wed, 12 Nov 2003 7:40 PM Body: Composite elements may now appear in queries. We havn't got collection filter support working yet, however. --------------------------------------------------------------------- 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 element properties in a query/filter. 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: Wed, 12 Nov 2003 6:31 PM 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 |