Just posted a question about room in stackoverflow...
# android
j
Just posted a question about room in stackoverflow, it's about an M:N relationship, if you know or have worked with it, please ping me, I'm seeing that I'm almost done but I need my last clarification. Thanks!
d
Link?
j
Send it to you
d
Haven't used Room in a while. Not sure if M:N is now supported. You may have to manually write the query.
I ask for the link so other people could easily look it up.
j
Easier question then, I have inside my Entity an object that is a List<String> so I need to do a query to check if X is inside that list, how can I do it?
d
The version of sqlite shipped with android can't handle surgical queries on a column. You'll have to move that list into another table and do JOINs and WHEREs.
j
i'm usin room
d
Which uses sqlite underneath.
j
Then how can I do the query to that list?
d
Look at Option #1 of the voted answer.