objectbox / objectbox/objectbox-java

Polymorphic entities

Open
#5 16 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Allow subclassing of entities.

Affects:

  • Box: should baseBox.get(subclassId) return a subclass entity? Probably so.
  • Queries: Querying for the base class should return all sub classes.
  • Relations: if a relation references a base class, actual objects may also be sub classes.

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 tracing the Box.get path, query handling, and relation resolution mentioned in the issue. Determine how subclass identities and base-class lookups should behave across these entry points, then define tests covering Box access, base-class queries, and relations before implementation. Done means all three cases consistently return or resolve subclass entities.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.