@Retention(value=SOURCE)
@Target(value=FIELD)
public @interface OrderBy
ToMany
relation
E.g.: @OrderBy("name, age DESC") List collection;
If used as marker (@OrderBy List collection), then collection is ordered by primary keyModifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value
Comma-separated list of properties, e.g.
|
public abstract java.lang.String value
Available under the Apache License, Version 2.0 - Copyright © 2011-2016 greenrobot.org. All Rights Reserved.