[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4652) em#createQuery(String, Class<?>) must support results returning multiple lines

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Dec 8 11:20:10 EST 2009


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

Emmanuel Bernard commented on HHH-4652:
---------------------------------------

The JavaDoc wording is a bit unclear but here is the story.
The number of elements returned (column) must be 1, ie List<Address> but not a List<Object[]> where Object[] contains address street and address city.

In other words, multi select queries are not supported by the spec (though could optionally).

The current code disallow results where the number of rows are > 1, which is not the intend.

> em#createQuery(String, Class<?>) must support results returning multiple lines
> ------------------------------------------------------------------------------
>
>                 Key: HHH-4652
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4652
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: entity-manager
>            Reporter: Emmanuel Bernard
>


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