objectbox / objectbox/objectbox-examples
ObjectBox DaoCompat
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 408
- Forks
- 96
- PR merge metrics
- No merged PRs in 30d
Description
I want to migrate your existing greenDAO data to ObjectBox.
// note example
List<com.example.app.daos.greendao.Note> notes = daoSession.getNoteDao().loadAll();
List<Note> convertedNotes = convertToObjectBoxNotes(notes);
daoCompatSession.getNoteDao().insertInTx(convertedNotes);
GreenDao is promoted to ObjectBox, I don’t know how to convert ‘converttoObjectBoxnotes’. Can you provide a specific instance?
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
No file or test is named in the issue. Start with the migration snippet and determine how a greenDAO Note should be represented as an ObjectBox Note before the daoCompatSession insertInTx call. Done means a concrete conversion example is provided for this migration path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- databases, documentation, mobile-dev
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100