https://kotlinlang.org logo
#android
Title
# android
j

joachim.reiss.

07/06/2017, 11:36 AM
is it a good idea to use Room entities for other things like json parsing and parcelable etc ?
b

bachhuberdesign

07/06/2017, 2:15 PM
joachim.reiss.: Really depends on your use case. We are using Room as our cache layer (and nothing else) so it made sense to use the same entities for JSON deserialization and Room (since if the API changes the database tables will need to change to stay 1:1). If you are doing something more advanced take a long look at how you are setting things up since it’s easier to change the design before its fully implemented 👍