-
Feb 17th, 2012, 04:58 AM
#1
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
-
Forum Rules