[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2980) Error "org.hibernate.HibernateException: cannot simultaneously fetch multiple bags" not specific enough

Peter Centgraf (JIRA) noreply at atlassian.com
Fri Aug 13 16:12:41 EDT 2010


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

Peter Centgraf commented on HHH-2980:
-------------------------------------

What's the logic behind keeping the message non-useful?  It seems reasonable to include the information from the VERY useful getBagRoles() as part of the message.

> Error "org.hibernate.HibernateException: cannot simultaneously fetch multiple bags" not specific enough
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-2980
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2980
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.5
>            Reporter: Dobes Vandermeer
>            Assignee: Steve Ebersole
>            Priority: Minor
>             Fix For: 3.2.x, 3.3.2, 3.5.0.Beta-1
>
>
> When I get this exception:
> org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
> I don't know what to do except google.  Why not spruce it up a little to say something like:
> For class X, multiple collection fields are marked for eager fetching: a, b, c; this is not supported by Hibernate in releases after 3.2.x

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