objectbox / objectbox/objectbox-java
Order ToMany objects
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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