Skip to content

With the new Join way, can I sort by specifiying a field? #42

@vicenrico

Description

@vicenrico
 @Join(to = LineItem.class, onProperties = "id", toProperties = "invoiceId")
    private List<LineItem> lineItems = new ArrayList<>();

Is it possible to sort this lineItems ArrayList?. I mean: If i have a LineItem with itemName and ItemDescription, is there any way to specify the field by which I want to sort the list? for instance: itemName or itemDescription. I know I can do it after retrieving the list, but I use sqlite and this db has a rowId that I use as a primary key and is 'hidden'. Of course, this is the field I want to sort by.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions