[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2440) Allow the exclude of DISTINCT from SQL Queries

Michael Barker (JIRA) noreply at atlassian.com
Fri Sep 7 03:49:14 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28033 ] 

Michael Barker commented on HHH-2440:
-------------------------------------

Sorry, this patch is pointless.  I though it may be faster than new LinkedHashSet(query.getResultList()), but it is not.

> Allow the exclude of DISTINCT from SQL Queries
> ----------------------------------------------
>
>                 Key: HHH-2440
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2440
>             Project: Hibernate3
>          Issue Type: Patch
>          Components: query-hql
>    Affects Versions: 3.2.2
>         Environment: N/A
>            Reporter: Michael Barker
>            Priority: Minor
>         Attachments: exclude-distinct.patch
>
>
> This patch allows the caller to exclude the DISTINCT keyword from SQL queries.
> Session session;
> Set s = new HashSet();
> s.add("org.hibernate.excludeSqlDistinct");
> Query q = session.createQuery("SELECT DISTINCT f FROM Foo f left join f.bars", s);
> q.list();

-- 
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