Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Merge pull for Issue #588, user DatabaseHelper.getDao instead of DaoManager.createDao()#597

Merged
DayS merged 1 commit into
androidannotations:developandroidannotations/androidannotations:developfrom
gebing:588_OrmLiteDaoCopy head branch name to clipboard
May 24, 2013
Merged

Merge pull for Issue #588, user DatabaseHelper.getDao instead of DaoManager.createDao()#597
DayS merged 1 commit into
androidannotations:developandroidannotations/androidannotations:developfrom
gebing:588_OrmLiteDaoCopy head branch name to clipboard

Conversation

@gebing

@gebing gebing commented May 22, 2013

Copy link
Copy Markdown
Contributor

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

DayS commented May 24, 2013

Copy link
Copy Markdown
Contributor

Thanks for the PR :)

@DayS

DayS commented May 24, 2013

Copy link
Copy Markdown
Contributor

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.