ordery-by in class mappings

Description

im useing the 1.2.1 version and for now theres is no option to upgrade to 2.0.0 version

i know there is an option to add an order-by to <bag> or <map>
is there a special reason why i cant add on order-by to my class mapping

i meen something like this

<class name="Action" table="Actions" mutable="false" Order-by="... " >

thanks
amit

Environment

None

Activity

Show:

Fabio Maulo 
July 22, 2008 at 8:45 PM

Yes a class is not a list of objects so you don't need an order-by.
To retrieve a list of instance of your class you must use one of the OO query (HQL, Criteria).
Querying your class instances you can specify the order-by you need.
Please use our users mailing list http://groups.google.com/group/nhusers for support request.

Won't Fix

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created July 21, 2008 at 11:41 PM
Updated July 22, 2008 at 8:45 PM
Resolved July 22, 2008 at 8:45 PM
Who's Looking?