• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!