Results 1 to 1 of 1

Thread: Suggestion: @DefaultSort

Threaded View

  1. #1

    Default Suggestion: @DefaultSort

    Wouldn't it be helpful if we could define default sorting on an entity, for example by annotation:

    @DefaultSort({
    @PropertyOrder(value = "creationDate", direction = Direction.DESC),
    @PropertyOrder("id")
    })
    public class Message { ... }

    Repositories would append this default sorting to the custom sorting, if any.
    Last edited by jeroen.van.schagen; Feb 17th, 2012 at 05:12 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •