This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sort in hbxml  RSS feed

 
Vallaru smitha
Ranch Hand
Posts: 87
Firefox Browser Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<set
name="products"
table="prod_cat
lazy="true"
inverse="false"
cascade="none"


>

<key
column="category_id"
>
</key>

<many-to-many
class="example.data.Product"
column="product_id"
outer-join="auto"

order-by="partnumber"

/>

</set>


for a particular category the products should be sorted on partnumber. I tired by giving order_by in many-to-many relation by it did not help.

any one please advice me.

Thanks
Smitha
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!