8000 Merge pull for Issue #588, user DatabaseHelper.getDao instead of DaoManager.createDao() by gebing · Pull Request #597 · androidannotations/androidannotations · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Conversation

@gebing
Copy link
Contributor
@gebing gebing commented May 22, 2013

Modify @OrmLite to use database helper to get dao, so generate code will look like:

private DatabaseHelper helper_;
...
...
helper_ = OpenHelperManager.getHelper(this, DatabaseHelper.class);
try {
    clickCountDao = helper_.getDao(ClickCount.class);
} catch (SQLException e) {
    Log.e("MyActivity_", "Could not create DAO clickCountDao", e);
}

…ill look like:

    private DatabaseHelper helper_;
    ...
    ...
    helper_ = OpenHelperManager.getHelper(this, DatabaseHelper.class);
    try {
        clickCountDao = helper_.getDao(ClickCount.class);
    } catch (SQLException e) {
        Log.e("MyActivity_", "Could not create DAO clickCountDao", e);
    }
@DayS
Copy link
Contributor
DayS commented May 24, 2013

Thanks for the PR :)

@DayS
Copy link
Contributor 7A8B
DayS commented May 24, 2013

Was related to issue #588

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0