You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just looking for how to implement update operation like this (Updating Entity) in new 1.4 version comparing to old version.
//old versionBookbook = Book.findById(Book.class, 1);
book.title = "updated title here"; // modify the valuesbook.edition = "3rd edition";
book.save();
findById(type, id)// is there but how to get the id of the retrieved data??
The text was updated successfully, but these errors were encountered:
LOG-TAG
changed the title
Example code doesn't have Update operation com.orm.SugarRecord.save;
Example code doesn't have Update operation like com.orm.SugarRecord.save;
Nov 6, 2014
The way I found to do this is by using the unique attribute. Then you can recover the entity you want to update and during save it will overwrite the previous value.
I'm just looking for how to implement update operation like this (Updating Entity) in new 1.4 version comparing to old version.
//newversion
like in AddNoteActivity of the example!!
The text was updated successfully, but these errors were encountered: