Joined: Wed Jul 21, 2004 3:58 am Posts: 17
|
Hi guys !
Is it possible sort a list with a attribute of a many-to-one component ?
If I had a mapping like that, Is it possible to sort a list of sales with a criteria like the name of the offer ?
<hibernate-mapping> <class name="Sale" table="Sale"> <id name="id" type="long" unsaved-value="null"> <column name="id" sql-type="bigint" not-null="true"/> <generator class="identity"/> </id> <property name="name" unique="true"> <column name="AV_Nom" length="50" not-null="true"/> </property> <many-to-one name="offer" not-null="true" /> </class> <class name="Offer" table="Offer"> <id name="id" type="long" unsaved-value="null"> <column name="id" sql-type="bigint" not-null="true"/> <generator class="identity"/> </id> <property name="name"> <column name="Off_Name" length="32" not-null="true"/> </property> </class> </hibernate-mapping>
Thank you in advance
|
|