[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4811) No support for XML/dom4j mapping for idbag collections

Tomislav Bodor (JIRA) noreply at atlassian.com
Mon Jan 18 01:44:32 EST 2010


No support for XML/dom4j mapping for idbag collections
------------------------------------------------------

                 Key: HHH-4811
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4811
             Project: Hibernate Core
          Issue Type: Improvement
    Affects Versions: 3.5.0-Beta-3, 3.3.2
         Environment: All
            Reporter: Tomislav Bodor
            Priority: Minor


Even though the node attribute can be added to a collection mapped as idbag, this only results in an a ClassCastException. It does not generate correct dom4j element node for the collection.

The reason is that the org.hibernate.type.IdentifierBagType.instantiate() does not support dom4j entity mode. Not sure whether the fix would be as simple as returning an instance of PersistentElementHolder for dom4j or whether there is a fundamental reason why this would not work for idbag.

Please let me know if you need more information than this.

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