basic example not working
Closed this issue · 2 comments
zoff99 commented
can you please provide a simple example that is working?
StorIOSQLite storIOSQLite = DefaultStorIOSQLite.builder()
.sqliteOpenHelper(someSQLiteOpenHelper)
.addTypeMapping(Tweet.class, SQLiteTypeMapping.<Tweet>builder()
.putResolver(new TweetStorIOSQLitePutResolver()) // object that knows how to perform Put Operation (insert or update)
.getResolver(new TweetStorIOSQLiteGetResolver()) // object that knows how to perform Get Operation
.deleteResolver(new TweetStorIOSQLiteDeleteResolver()) // object that knows how to perform Delete Operation
.build())
.addTypeMapping(...)
// other options
.build(); // This instance of StorIOSQLite will know how to work with Tweet objects
this is not working. even if filled with missing values the 3 classes are not generated/found
Error:(90, 45) error: cannot find symbol class TweetStorIOSQLiteDeleteResolver
Error:(89, 42) error: cannot find symbol class TweetStorIOSQLiteGetResolver
Error:(88, 42) error: cannot find symbol class TweetStorIOSQLitePutResolver
i am using this in my build.gradle:
compile 'com.pushtorefresh.storio:sqlite:1.12.3'
// compile 'com.pushtorefresh.storio:content-resolver-annotations:1.12.3'
compile 'com.pushtorefresh.storio:sqlite-annotations:1.12.3'
annotationProcessor 'com.pushtorefresh.storio:content-resolver-annotations-processor:1.12.3'
nikitin-da commented
Hi, @zoff99 !
Can you show Tweet.java
from your project? Maybe something was wrong with this class annotations.
Did you try sample in project https://github.com/pushtorefresh/storio/blob/master/storio-sample-app/src/main/java/com/pushtorefresh/storio/sample/db/DbModule.java#L40 ?
nikitin-da commented
Closing for now. Feel free to reopen with some detailed information