persistence@glassfish.java.net

Maintaining an order of the list

From: Aleksei Valikov <aleksei.valikov_at_gmail.com>
Date: Mon, 15 Oct 2007 22:41:13 +0200

Hi,

Imagine we've a list property

public List<Item> getItems();

Where Item is an entity.

I'd like to make the items property persistent. How could I maintain
the order of the items in the list?

The only possibility I see right now is to wrap this list as a map
where keys are indexes. However this is very weird if you ask me.

Bye.
/lexi