Using Hibernate 3.1.2 (this was also occuring with 3.0.5) I can't seem to get a list with list-index and base='1' to work. My sequence field is always written starting with 0; the base='1' seems to be ignored. When the list is read by the same object, Hibernate complains that the sequence 0 (that it wrote) is out of bounds.
Here's the mapping:
Code:
<list name="steps" cascade="all,delete-orphan">
<key column="parentPtr" not-null="true" />
<list-index column="sequence" base='1' />
<one-to-many class="bus.Step"/>
</list>
For some reason, the list sequence field is written starting at 0. Is this my problem, or Hibernates?