orderByColumns on many-to-many association are reversed -------------------------------------------------------
Key: HIB-132 URL: http://jira.andromda.org/browse/HIB-132 Project: Hibernate Cartridge Type: Bug Versions: 3.1M1 Reporter: Lee Greiner Assigned to: Carlos Cuenca Priority: Minor I have a many-to-many association between entities A and B. On the A side of the association I have the orderByColumns set to attributes of A. The B side of the association does not have orderByColumns set. When I want to perform B.getA() I want the A's sorted. The problem: when I attempt to perform A.getB() I get an exception indicating the orderBy attributes, the ones defined on the A side of the association, are invalid. The A.hbm.xml file has the orderBy attribute set and the B.hbm.xml does not have the orderBy attribute set, the reverse of what I expected. Modeling one-to-many associations with orderByColumns set works as anticipated. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf