minor fix
git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@5599 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
bd48df0168
commit
87f735ec10
|
@ -290,8 +290,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
|
|||
mapped with <literal><composite-map-key></literal>. The index of an array or
|
||||
list is always of type <literal>integer</literal> and is mapped using the
|
||||
<literal><list-index></literal> element. The mapped column contains
|
||||
sequential integers numbered from zero. Make sure that your index really starts
|
||||
from zero if you have to deal with legacy data.
|
||||
sequential integers (numbered from zero, by default).
|
||||
</para>
|
||||
|
||||
<programlistingco>
|
||||
|
@ -371,7 +370,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
|
|||
|
||||
<para>
|
||||
If your table doesn't have an index column, and you still wish to use <literal>List</literal>
|
||||
as the property type, you should map the property as a Hibernate <emphasis>bag</emphasis>.
|
||||
as the property type, you should map the property as a Hibernate <emphasis><bag></emphasis>.
|
||||
A bag does not retain its order when it is retrieved from the database, but it may be
|
||||
optionally sorted or ordered.
|
||||
</para>
|
||||
|
|
Loading…
Reference in New Issue