How to search two tables sharing a foreign key (I think I'm asking this right…)?
问题 Dog entity @Entity(tableName = "dog_table") public class DogEntity { private int mId; private String mName, mBreed; etc.. } Toy entity @Entity(tableName = "toy_table") public class ToyEntity { private int mId; private String mName, mBrand; etc.. } DogAndToy join table entity @Entity(tableName = "dog_and_toy_join_table", primaryKeys = {"mDogID", "mToyId"}, foreignKeys = { @ForeignKey( entity = DogEntity.class, parentColumns = "mId", childColumns = "mDogID", onDelete = ForeignKey.CASCADE,