This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sort in hbxml

 
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