mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 20:54:46 +00:00
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
|
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
|
list is always of type <literal>integer</literal> and is mapped using the
|
||||||
<literal><list-index></literal> element. The mapped column contains
|
<literal><list-index></literal> element. The mapped column contains
|
||||||
sequential integers numbered from zero. Make sure that your index really starts
|
sequential integers (numbered from zero, by default).
|
||||||
from zero if you have to deal with legacy data.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<programlistingco>
|
<programlistingco>
|
||||||
@ -371,7 +370,7 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
If your table doesn't have an index column, and you still wish to use <literal>List</literal>
|
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
|
A bag does not retain its order when it is retrieved from the database, but it may be
|
||||||
optionally sorted or ordered.
|
optionally sorted or ordered.
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user