-1

How can I translate the following Orderby sql statement to

ORDER BY Country ASC, CustomerID DESC;

I have manage to write Ordering.property("Country").ascending(); but not sure how to add the next condition.

Thanks

Ramesh sambu
  • 3,577
  • 2
  • 24
  • 39
Itai.S.
  • 144
  • 13

1 Answers1

1

If you look at the orderBy method, you will see that it has the following signature

public OrderBy orderBy(Ordering... orderings)

Note that you can put multiple Ordering objects inside.

borrrden
  • 33,256
  • 8
  • 74
  • 109