Android Room: apply multiple columns in relation of embedded object
问题 In my Android App I am using Room for data storage. I am currently facing the problem, that I need to put 2 columns in my @Relation of the embedded object because the relation depends on 2 columns. See below the structure: @Entity(tableName = "damages") public class Damage { @PrimaryKey(autoGenerate = true) @NonNull private Long id; @NonNull private Long projectId; @NonNull private Long codeId; private String description; ... } @Entity(tableName = "damage_codes") public class DamageCode {