objectbox / objectbox/objectbox-java

Order ToMany objects

Open
#154 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
4.6k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

i think just like greendao for toMany relation need @OrderBy annotation
example :

@Entity
public class Customer {
    @Id private Long id;

    @Backlink(to = "customerId")
    @OrderBy("date ASC")
    private ToMany<Order> orders;
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing ToMany and @Backlink APIs and how relation results are currently ordered; the issue names no source files or tests. The requested behavior is an @OrderBy annotation on a ToMany relation, with the Customer example returning orders sorted by date ascending.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
databases, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.