hi hansamann
theres good docs about collections in general and lists specifically at:
http://www.hibernate.org/hib_docs/v3/re ... ns-indexed
basically, you:
- choose a collection type (in this case List)
- choose the content type (in this case Integer)
- map it
Code:
eg
<list name="myIntegers" table="myIntegerListTable">
<key column="someNameForYourKeyColumn"/>
<element type="integer"/>
</list>
If the content type is a simple type (not a reference to another entity) you use the <element> tag.
happy hibernating
Michael