Join Slack
Powered by
Quick question, couldn't find an answer on Google:...
# android
e
Edgars
01/15/2019, 3:26 PM
Quick question, couldn't find an answer on Google: does Room support inline classes for fields? Like, if I wanted to store
Copy code
inline class FooId(val id: String) data class Foo(val id: FooId)
would that work out of the box? But storing a
List<FooId>
wouldn't work without a TypeConverter, right?
Edgars
01/15/2019, 5:36 PM
Just realized it doesn't really matter, since I'll have separate Entity and regular models (as you should).
Open in Slack
Previous
Next