Began his acquaintance with Realm. Created a simple table:
public class NoteModel extends RealmObject { private String note; private String header; private Date date; /* геттеры и сеттеры для данных * ... */ } And learned how to fill it with data. I deduce the data by means of RecyclerView in CardView elements. Now I want to select CardView and change the data of this record. How do I find exactly the record? In SQLite there is an id field and it is unique for each record, but in Realm there is no such thing. Should I determine the id field in the model myself? The only information that I found in the docks / English-speaking forums is that you can use to update the information.
copyToRealmOrUpdate(obj); or
insertOrUpdate(obj); but I do not quite understand how I can change a specific entry with their help.
I will be glad to any help / examples with code / projects from the gita.