[jpa-spec users] _at_OrderColumn: "non-sparse" and smallest value

From: Karsten Wutzke <>
Date: Wed, 18 Jan 2012 18:27:57 +0100 (CET)


I've just read

There are the sentences:

"The persistence provider maintains a contiguous (non-sparse) ordering of the values of the order column when updating the association or element collection. The order column value for the first element is 0."

What does "non-sparse" mean? What if I inserted entities into the table, that is with its order column starting with 1, would list.get(0) return that entity even though the actual DB order value is 1?

SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen!