Greetings
Sugar ORM is the easyest way to use SQL in Android, http://satyan.github.io/sugar/ is plain simple. But I currently have to have 2 models, once for connecting with Backendless and another for saving in local.
This happens cause Sugar ORM requieres de model is extended with a collection, like this:
public class MyModel extends SugarRecord<MyModel> {/*variables and getters and setters*/}
Also the constructor must be able to accept multiple params:
public class MyModel extends SugarRecord<MyModel> {
String someString;
String anotherString;
public MyModel(){
}
public MyModel(String someString, String anotherString){
this.someString = someString;
this.anotherString = anotherString;
}
}
Off course you can see the official documentation here: http://satyan.github.io/sugar/getting-started.html
Supporting Sugar ORM will be a great feature to easily create offline/online apps.
Hope you consider it. Thanks.