tags:

views:

87

answers:

1

Hi

I am bit confusion of list index type,my mapping file has like below

<list name="transactionItems" cascade="save-update,delete-orphan" lazy="false"> <key column="TRANSACTION_ID" /> <list-index column="IDX" /> <one-to-many class="TransactionItem" /> </list>

whenever hibernate load a mapped object,its through exception null index column for collection:transactionItems please suggest me what can be the problem here. can you exaplain a bit about list-index?

thanks & Regards kumar kasiamla India,Hyderabad.

+1  A: 

I am think it should be many-to-one , but that's probably not the reason you are getting an exception....

VoodooChild
It should be an one-to-many relation only. what can be the problem there?
kumar kasimala