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

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major