python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Best way to deserialize Json with nested objects into Android Room Entity with ForeignKeys
I have a Client api. The json response looks like this:
{
"clientId": 1,
"createdAt": null,
"updatedAt": null,
"monthlyPaymentAmount": null,
...

Jesus Jimenez
Votes: 0
Answers: 2
How to return the ID of the inserted row in Room database
I am inserting some rows in my Room database but I want to be able to access the ID of the inserted row.
How can I do it?
repo.insertMedication(new Medication(name, quant_aux, time));
Repository inse...
Fábio Pires
Votes: 0
Answers: 0
Room MigrationTestHelper is deprecated
I want to write a JUnit test for my database migrations like as android documentation says, but in room version 2.4.1 MigrationTestHelper is deprecated, is there any alternative for this to test my le...

Mobin Yardim
Votes: 0
Answers: 1
Synchronization problem Room database coroutines Android kotlin
I have a table called PendingFile, which holds the parts of a file being downloaded through Socket.
Every, pendingFile has a status = FILE_PART_PENDING || FILE_PART_RECEIVED.
PendingFile
@Entity(table...

james04
Votes: 0
Answers: 0