SiimKinks / sqlitemagic

Compile time processed, annotation driven, no reflection SQLite database layer for Android
https://siimkinks.github.io/sqlitemagic/javadoc/
Apache License 2.0
121 stars 11 forks source link

database operation builder methods issue #1

Closed abusuioc closed 7 years ago

abusuioc commented 7 years ago

Hi, trying out your library's examples, I cannot do a simple insert because apparently the insert method is not found in the Book class:

@Table(persistAll = true)
@AutoValue
public abstract class Book
Book book = new Book(77, "Bar", author);

Single<Long> insert = book
    .insert()
    .observe();

How can I debug why the database operation builder methods are not "automagically" generated during compile time?

SiimKinks commented 7 years ago

It seems that you haven't installed the IntelliJ plugin. Please refer to https://github.com/SiimKinks/sqlitemagic/wiki/Setup#install-intellij-plugin

abusuioc commented 7 years ago

You're absolutely right, seems I skipped that paragraph, thank you.