I am new to application development using SQLite and Sugar ORM on Android and tried to read the Sugar ORM documentation but found nothing how to update a saved object in SQLite. Can I save an object after changing its properties? sort of:
Customer myCustomer = (Customer.find(Customer.class, "id = ?", id)).get(0);
myCustomer.setName("new name");
myCustomer.setAddress("new Address");
myCustomer.save(); // is this okay for updating the object?
the save () method will not create another new object, leaving the old record intact, right?
source
share