The explanation might be in the Hibernate reference, p 87, paragraph starting "If your table doesn't have an index column, and you still wish to use List as the property type..."
However, from your description, I don't see why you need Hibernate to know about the association at all. Your way of preserving the order by an order-by indicates that you always read the collection elements using an SQL statement you wrote yourself. Letting Hibernate fetch the associated elements wouldn't use your order-by clause, so your ordering wouldn't be preserved.
|