Hi,
I'm using Hibernate 3.0.5. I've read in the reference the following in section 7.2.3
Code:
If your table doesn't have an index column, and you still wish to use List as the property type, you should map the property as a Hibernate <bag>. A bag does not retain its order when it is retrieved from the database, but it may be optionally sorted or ordered
How do I "optionally sort/order" the bag?
I've used the generation tools to generate the Java objects, and found that the bag maps into a Collection in the java class. So do I cast it into a sub-class that is sorted, and then perform the sort?
Any ideas on this, anyone? Thanks!