Fixed
Status Update
Comments
ya...@google.com <ya...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 888c3e5d8c8eed9c0e2067b0c65bf5758f58be1b
Author: Yuichi Araki <yaraki@google.com>
Date: Mon Oct 15 14:48:19 2018
Allow use of view in @Relation
Bug: 117680932
Test: PojoProcessorTest, DatabaseViewTest
Change-Id: I99a5843eacae44f56845a5e709952d09dad4c3ee
M room/common/src/main/java/androidx/room/Relation.java
M room/compiler/src/main/kotlin/androidx/room/processor/DatabaseViewProcessor.kt
A room/compiler/src/main/kotlin/androidx/room/processor/EntityOrViewProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/processor/EntityProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/processor/PojoProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/processor/ProcessorErrors.kt
M room/compiler/src/main/kotlin/androidx/room/vo/DatabaseView.kt
M room/compiler/src/main/kotlin/androidx/room/vo/Entity.kt
A room/compiler/src/main/kotlin/androidx/room/vo/EntityOrView.kt
M room/compiler/src/main/kotlin/androidx/room/vo/Pojo.kt
M room/compiler/src/main/kotlin/androidx/room/vo/Relation.kt
M room/compiler/src/test/kotlin/androidx/room/processor/PojoProcessorTest.kt
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/DatabaseViewTest.java
https://android-review.googlesource.com/787985
https://goto.google.com/android-sha1/888c3e5d8c8eed9c0e2067b0c65bf5758f58be1b
Branch: androidx-master-dev
commit 888c3e5d8c8eed9c0e2067b0c65bf5758f58be1b
Author: Yuichi Araki <yaraki@google.com>
Date: Mon Oct 15 14:48:19 2018
Allow use of view in @Relation
Bug: 117680932
Test: PojoProcessorTest, DatabaseViewTest
Change-Id: I99a5843eacae44f56845a5e709952d09dad4c3ee
M room/common/src/main/java/androidx/room/Relation.java
M room/compiler/src/main/kotlin/androidx/room/processor/DatabaseViewProcessor.kt
A room/compiler/src/main/kotlin/androidx/room/processor/EntityOrViewProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/processor/EntityProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/processor/PojoProcessor.kt
M room/compiler/src/main/kotlin/androidx/room/processor/ProcessorErrors.kt
M room/compiler/src/main/kotlin/androidx/room/vo/DatabaseView.kt
M room/compiler/src/main/kotlin/androidx/room/vo/Entity.kt
A room/compiler/src/main/kotlin/androidx/room/vo/EntityOrView.kt
M room/compiler/src/main/kotlin/androidx/room/vo/Pojo.kt
M room/compiler/src/main/kotlin/androidx/room/vo/Relation.kt
M room/compiler/src/test/kotlin/androidx/room/processor/PojoProcessorTest.kt
M room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/DatabaseViewTest.java
Description
I don't see why we cannot support it since from a relation's perspective, it is like an entity.
This is quite critical as it allows extending scope of relationships.