[hibernate-issues] [Hibernate-JIRA] Issue Comment Edited: (HHH-5056) Criteria API with ProjectionList and Unique result

Ahmed Ali Elsayed Ali Soliman (JIRA) noreply at atlassian.com
Mon Feb 21 02:53:05 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40032#action_40032 ] 

Ahmed Ali Elsayed Ali Soliman edited comment on HHH-5056 at 2/21/11 1:52 AM:
-----------------------------------------------------------------------------

this error still exist in hibernate 3.6.1

      was (Author: ahmed1001):
    this error still exist in 3.6.1
  
> Criteria API with ProjectionList and Unique result
> --------------------------------------------------
>
>                 Key: HHH-5056
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5056
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: query-criteria
>    Affects Versions: 3.5.0-CR-2
>         Environment: Hibernate 3.3.2, Oracel 11g
>            Reporter: Ahmed Ali Elsayed Ali Soliman
>            Assignee: Gail Badner
>            Priority: Critical
>
> when you make a select statement with Criteria API & use ProjectionList to retrieve some columns then use the unique result
> make at least 2 projection list (2 columns or more)
> ProjectionList projectionList = Projections.projectionList()			.add(Projections.property("ColumnA"))					.add(Projections.property("ColumnB"));
> criteria.setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);
> the result must be retrieved in 2 dimensional array of Object(Object[][])
> but the result are one dimensional array with one column only.
> Note:- when you remove the unique result it works fine but when you add it, it make this behavior.

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