objectbox / objectbox/objectbox-java

ObjectBox on multi-module project

Open
#588 16 comments 9 reactions 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 have a project with a app and multi modules(app, domain, data).

I created an Application in module-app, init objectbox in the module app application, for regenerate the database from some json files.

My entities are in the domain module, and some repositories in the data module.

My problem is that MyObjectBox class is not generated.

How should I make it work?

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 multi-module setup described for app, domain, and data, including where the Application initializes ObjectBox and where the entities reside. Check why MyObjectBox is not generated or available across those modules, then verify that database regeneration works from the JSON files.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
database, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.