I am playing around with Java API for RESTful Web Services (JAX-RS) ,
and encountered @DefaultValue
annotation in Jersey implementation of JAX-RS.
This won't work how you want it to. If the object is type List it will have a single value inserted in the list. The object in the list will be the value of your default value for the list. Check this out Why not try checking if orderBy == null
if it does then add your default values to orderBy
?