I have two entities that have a many-to-many relationship; they are mapped with annotations @ManyToMany and @JoinTable. In the database join table I also have "order" column which would indicate in which order B entities are listed in A. (The ordering of Bs is specific for each A).
How can I get Hibernate to order list according to the "order" column, when I have List< B > in A, (I'm not interested ordering in the other direction).