I was very lucky with SugarOrm for Android, but I ran into a problem. I use it with GSON to serialize Json and I want to get rid of the id attribute SugarRecord. I know that I have to use @Tablethe annotation, and then exclude a specific area of serialization using @Expose, but after annotating the class with @Table I can not use .save(), delete()... methods on the object, as it is the case expands SugarRecord. I do not know how to save objects using annotation @Table.
I found the documentation here very limited.
source
share