Using hibernate2.jar (dated 8/8/2004), no readme or version file in jar, not sure what the version is.
Database is Oracle
Generated sql is;
Hibernate: select 'some fields'... from atable_name where
some_criteria order by this.COLUMN_A asc
Code for order by is;
criteria.addOrder(Order.asc("columnA"));
criteria.addOrder(Order.desc("columnB"));
Problem;
Why isn't columnB appearing in the order by portion of the sql and don't tell me that you can only have one order by. If so the method is inappropriatley name and should be changed to setOrder.
Apologies for lack of hibernate version I did not set this up, so I am not sure what version was downloaded.
|