Joined: Tue Sep 21, 2004 1:33 pm Posts: 5
|
I have the following hibernate mapping for an object called Foo
<set
name="barSet"
table="BAR_TABLE"
cascade="all"
order-by="TEXT asc"
lazy="false">
<key column="BAR_ID" />
<many-to-many
column="BAR_ID"
unique="true"
class="com.company.Bar" />
</set>
My question is how do I order the given set by a column in the bar_table?
The given mapping gives an error saying <alisa>.TEXT is an invalid identifier. I nows this works when doing is simple one-to-many when not using a join table, but is it possible while using a join table?
|
|