Skip to content

Instantly share code, notes, and snippets.

@yashprakash13
Created February 5, 2019 13:57
Show Gist options
  • Save yashprakash13/27091e17b8182cefad467eac17177088 to your computer and use it in GitHub Desktop.
Save yashprakash13/27091e17b8182cefad467eac17177088 to your computer and use it in GitHub Desktop.
String newTitle = "New Title";
Stirng descNew = "New Description";
Entity entity = new Entity();
entity.setTitle(newTitle);
entity.setContent(newTitle);
entity.setWroteAt(AppTools.getCurrentDateTime());
//Updating a row
mRepository.update(entity);
//To delete a row
mRepository.delete(entity);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment