Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
1.2.0.GA
Hi,
I got a problem with a list. For me is the index really imported en when i insert a new item in the list not all items get updated in the database and i get items with the same index.
the mapping files:
<list name="Items" inverse="false" lazy="false">
<key column="PlaylistPeriodId" />
<index column="Position" />
<one-to-many class="DStudioObject.NHibernate.Objects.PlaylistItem, DStudioObject" />
</list>
and :
<many-to-one name="Period" class="DStudioObject.NHibernate.Objects.PlaylistPeriod, DStudioObject" column="PlaylistPeriodId" update="true" insert="true" lazy="false" />
and insert the item with the followin code:
_playlistmanager.saveOrUpdateObject(item);
_activeplaylistperiod.Items.Insert(position, item);
now i tried to update the _activeplaylistperiod after insert, update the object i insert but nothing works. Someone an idea?