Announcement Announcement Module
Collapse
No announcement yet.
Suggestion: @DefaultSort Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 05:12 AM.
Working...
X