The last few days I played around with Android and Jetpack. I used Room for storing my data on a local DB. By now all is running fine, but I want to simplify and reorder my code.
So I am wondering if it is possible to split the @Entity class for my Tables into a KEY class (including all key values) and a DO class (including non key values)!?
For information: I used this method for a personal JAVA project and I am thinking it is a really nice way to keep everything structured and it is easier to keep an overview!
Thanks!!
@Embedded
on a@PrimaryKey
field. I have not tried this and I do not know if it is supported, but it is the only way I can think of that would give you what you are looking for. – CommonsWare May 10 '19 at 11:07