steve wrote:
I notice that you are trying to use inventory_history_id as the index of the List. I'm going to further guess that inventory_history_id is the PK into the InventoryHistory class. Thats not the purpose of the index attribute on list. The index attribute specifies property Hibernate should use to position the items within the List. So you are most likely experiencing "gaps" within your List.
Howdy,
It appears that all the docs on using Lists I've seen say that the index property in the mapping file is supposed to be a column name. But above you say it's supposed to be a property name. While I realize that properties map to columns, I guess I'm finding this confusing.
Is the mapping files <index column="x"/> supposed to describe the actual column name in the "child" table or is it meant to be the name of a property that manages an index value for the child class?
Thanks!
Gerry