mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-22 18:26:29 +00:00
Merge pull request #2330 from FOCONIS/pr/enh/sort_order_in_bean_state
Make getSortOrder accessible in BeanState API
This commit is contained in:
@@ -118,4 +118,9 @@ public interface BeanState {
|
||||
*/
|
||||
@Nullable
|
||||
Map<String, Exception> getLoadErrors();
|
||||
|
||||
/**
|
||||
* Return the sort order value for an order column.
|
||||
*/
|
||||
int getSortOrder();
|
||||
}
|
||||
|
||||
@@ -94,4 +94,8 @@ public final class DefaultBeanState implements BeanState {
|
||||
return intercept.getLoadErrors();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSortOrder() {
|
||||
return intercept.getSortOrder();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user