For example, i have a list of X inside Y. X has 5 items, and i insert then in a specific order. Then i save them to Hibernate.
Now i want to recover X from Y, but i have no explicit column to order by and I want to retrieve the collection in the same order i had first inserted (before saving it to the database).
Is it possible? Or i must explicitly order by something?
I can`t order by id, because the items of X already existed in the database, i just want the collection to be in a certain order!
Thanks in advance,
Chicoscience
|