For an array tag we need to specify the list-index nested-tag (thats mandatory)
but my app doesnt need to maintain any particular sequence order.
The business tier has a class which has an array[] of a custom type.
But the database doesnt has any column for specifying the index.
So to create a mapping can I just create a column (dummy) and give its name in column attribute of list-index nested-tag and let the value inside
it be null (as the sequence doesnt matter to me).
Is that kind of thing possible ?
Quote:
array tag syntax :
Code:
<array name="speakers">
<list-index column="speaker_index"/>
<key column="event_id"/>
<one-to-many class="Speaker"/>
</array>
In the above example, if suppose i dont put any values in 'speaker_index' column (i.e. null values) what will be the effect ?