For now, I have a working ListView that successfully loads every “parent” object in the ListView, retrieving the parent attributes and showing them in every element. Due to I am trying to follow Android’s Model-View-ViewModel architecture patterns, I am using RoomDb, a Repository class and a ViewModel class (viewmodel class holds logic for both parent and children; I wonder if
Tag: relational-database
How can I implement a Save Or Update function using Spring Data Jpa?
I am using Spring Data JPA to save a record to my database. Here is the method I am using: and my repository: I want to modify this so it will Save or Update. This is what I have so far: I have a few questions – #1 Is this bad practice (deleting and then re-inserting)? #2 If I implement