Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create table for class, Are you missing @Table annotation? #23

Closed
mradzinski opened this issue Jan 18, 2015 · 5 comments
Closed

Comments

@mradzinski
Copy link

Weirdly enough, the model does have the Table annotation...

@Table
public class TestModel {
    @Id(name = Constants.COLUMN_ID)
    public long _id;

    @Column(name = Constants.COLUMN_TEST)
    public String testColumn;

    public TestModel (String testColumn) {
        this.testColumn = testColumn;
    }
}

The above error is followed by this one on the Logcat trace:
Caused by: java.lang.ClassNotFoundException: com.tests.shillelagh.models.TestModel$$Shillelagh

Looks to me the annotation processor is having some issues...

@AndrewReitz
Copy link
Owner

Are you using progaurd?

@mradzinski
Copy link
Author

Never mind, I copied the gradle imports from your readme and they are wrong, you missed the processor. Check the provided dependency.

@AndrewReitz
Copy link
Owner

Oh, good catch. I'll update as soon as I get time.

@mradzinski
Copy link
Author

No problemo! I just tested and now that I added the processor it works. Cheers!

@AndrewReitz
Copy link
Owner

Fixed the docs. @mradzinski Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants