8000 Suggestion for @OrmLiteDao · Issue #588 · 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.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Suggestion for @OrmLiteDao #588

@gebing

Description

@gebing

Using @OrmLiteDao, androidannotations will generate code like this:

connectionSource_ = OpenHelperManager.getHelper(this, DatabaseHelper.class).getConnectionSource();
try {
    clickGroupDao = DaoManager.createDao(connectionSource_, ClickGroup.class);
} catch (SQLException e) {
    Log.e("MyActivity_", "Could not create DAO", e);
}

I suggest user DatabaseHelper.getDao(clazz) instead of DaoManager.createDao(), because user can do some extra work to override function DatabaseHelper.getDao()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0