jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From majohnst <m...@lattaoutdoors.com>
Subject Preserve order of OCM @Collection
Date Tue, 23 Dec 2008 23:33:34 GMT

I have a List in my object that is being mapped by @Collection. I am able to
add and edit the collection properly. My question is because I set this up
as a java.util.List, is there any way to preserve the ordering of the nodes
in the collection? 

Here is my field:
@Collection(jcrElementName="page", elementClassName=Page.class,
private List<Page> pages;

I have a "priority" field on the Page object that I figure I could order by
during queries, but I want the order to remain correct when I use
View this message in context: http://www.nabble.com/Preserve-order-of-OCM-%40Collection-tp21151759p21151759.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

View raw message