Hibernate XML ArrayList
===

i have this relation in my application:

Entry 1:n Guest

The Entry.class contains the following property:

    Entry {
      ...
      ArrayList<Guest> guestList = new ArrayList<Guest>();
      ...
    }

I would like to configure this guestList property for lazy loading in Hibernate, but it doesn't work. Here's what I have:

    <class name="...." table="entry">
      <id name="id" column="entry_id" type='long'>
        <generator class="native" />
      </id>
    
      ...other properties...
    
      <list name="guestList" table="guest" cascade="all">
        <key column="entry_fk"/>
        <index column="guest_id"/>
        <one-to-many class="Guest"/>
      </list>
    
      ...other properties...
    
    </class>

Here is a description of the Guest table schema:

table : guest[guest_id,entry_fk,guestName,...]


btw:

 - i can't use annotations in this project.
 - preferably i'd like to use lazy-loading (as soon as it works)
 - i have no index in my table, but Hibernate keeps asking for this definition.