We're updating the issue view to help you get more done. 

<list> mapped in hbm.xml ends up as a bag

Description

In hibernate-core/src/test/java/org/hibernate/test/ops/Hoarder.hbm.xml:

1 2 3 4 5 <list name="subItemsBackref" lazy="true" cascade="persist,merge,save-update"> <key column="parentItem" not-null="true"/> <index column="index"/> <one-to-many class="SubItem"/> </list>

Hibernate turns it into a bag.

This causes a failure in org.hibernate.test.ops.testTopLevelUnidirOneToManyBackrefWithRemovedElement(), but not sure why.

Environment

None

Status

Assignee

Unassigned

Reporter

Gail Badner

Components

Fix versions

Priority

Major