objectbox / objectbox/objectbox-examples

ObjectBox DaoCompat

Open
#59 1 comment 0 reactions 0 assignees View on GitHub

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.