Hibernate version: 3.0.2 in JBoss 4.0.2
It seems to be impossible to use order-by in many-to-many relationships. More details about this problem can already be found in topics
http://forum.hibernate.org/viewtopic.php?t=943992 and
http://forum.hibernate.org/viewtopic.php?t=942035 so i'm not repeating the details.
Unfortunately in none of these topics a real answer is provided.
One of these topics points to
http://forum.hibernate.org/viewtopic.php?t=926084 in which Gavin states that this just isn't supported. However this statement is over two years old so it might be out of date. The change log for Hibernate states "fixed incorrect table alias for order-by on many-to-many" for version 3.0. I assume no fixes will be done on anything that isn't supported!?
Could anyone tell me if there's a way in which i can get this to function properly?
Thanks a lot,
Erwin