one to many structure. For example: I have School object and I should get Students which study in this school. However there should be only students whose age is 15. Using @Embedded and @Relation annotations give all students, I dont know how to put where clause somewhere?
There are 'schools' and 'students' table, how can I get one school and students studying at that school where age=15,
SELECT * FROM TABLE WHERE age==15
Обсуждают сегодня