[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-869) Querying collections of value type in the Criteria API
y360 (JIRA)
noreply at atlassian.com
Thu Nov 9 09:33:05 EST 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-869?page=comments#action_25225 ]
y360 commented on HHH-869:
--------------------------
A workaround that uses Criteria API with collection of values:
entityCriteria.add(Restrictions.sqlRestriction("{alias}.id in (select e.id from entities_table e, values_table v where e.id = v.entity_id and v.field = ?)", value), Hibernate.INTEGER)) ;
> Querying collections of value type in the Criteria API
> ------------------------------------------------------
>
> Key: HHH-869
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-869
> Project: Hibernate3
> Type: Improvement
> Components: core
> Versions: 3.1 beta 1
> Reporter: Alexey Kaigorodov
> Priority: Minor
>
>
> Please add support querying against values in a collection of values in the Criteria API.
> Related links:
> http://forum.hibernate.org/viewtopic.php?t=932908
> http://forum.hibernate.org/viewtopic.php?t=943792
> http://forum.hibernate.org/viewtopic.php?t=946236
> Best regards,
> Alexey
--
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