ckurtm / simple-sql-provider Goto Github PK
View Code? Open in Web Editor NEW{DEPRECATED} An easy way to create a sql based ContentProvider in Android using annotations
{DEPRECATED} An easy way to create a sql based ContentProvider in Android using annotations
Hi,
I have setup the library with the latest Gradle configuration, but got the following build error as soon as I added the "TestProviderConfig" class as per the instruction:
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
java.lang.NullPointerException
Clean/rebuild didn't help. I also tried different versions of the plugin/libs (e.g. tried javapoet 1.3) but none worked.
Steps to reproduce:
I am using Android Studio 1.4 on Windows platform.
My app gradle is:
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "projects.nanodegree.henry.popularmovies"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:support-v4:23.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.squareup:javapoet:1.2.0'
compile 'ckm.simple:simple_sql_provider_annotation:1.0.6'
compile 'ckm.simple:simple_sql_provider_processor:1.0.6'
}
Thanks for the library.
There is no way of using insertWithConflict with current provider. I can't overwrite rows.
Does this library support foreign keys? I really like this Content Provider, but without this, it's very limited. If it does, please show me how.
Hello,
thanks for great library.
I'm using it for read and write and it works OK, however, when I use getContentValues from generated class for table, function ignores includePrimary parameter which is important, because on write I don't want to include primary key.
Can you please suggest what to do or you have unsolved bug maybe?
Have a nice day.
Hello
I have reached a point in my app where i need to populate a list with shows data from 2 tables in a one to many relation. Table Profile contains the fields (profileName, profileId) and the talbe ClubMember contains the fields (clubMemberrId, profileId, clubId). How should I create a loader that shows the profileName for all the clubMembers?
Warning: ckm.simple.sql_provider.processor.SimpleSQLProviderProcesor: can't find superclass or interface javax.annotation.processing.AbstractProcessor
Warning: com.squareup.javapoet.AnnotationSpec$Visitor: can't find superclass or interface javax.lang.model.util.SimpleAnnotationValueVisitor7
Warning: com.squareup.javapoet.JavaFile$2: can't find superclass or interface javax.tools.SimpleJavaFileObject
Warning: com.squareup.javapoet.TypeName$1: can't find superclass or interface javax.lang.model.util.SimpleTypeVisitor7
Warning: ckm.simple.sql_provider.processor.Helper: can't find referenced class javax.lang.model.element.Element
Warning: ckm.simple.sql_provider.processor.Helper: can't find referenced class javax.lang.model.element.Modifier
Warning: ckm.simple.sql_provider.processor.Helper: can't find referenced class javax.lang.model.type.DeclaredType
Warning: ckm.simple.sql_provider.processor.Helper: can't find referenced class javax.lang.model.type.DeclaredType
..........
..........
............ The list goes on.
Hello.
I started playing with this very nice tool. I'm not able to figure out how to implement a simple UpgradeScript test. I will also be satisfied if I have the option of dropping all my tables and recreate them using the UpgradeScript class.
Thank you in advance.
Bogdan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.