13ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar/*
23ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * Copyright 2017 The Android Open Source Project
33ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar *
43ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * Licensed under the Apache License, Version 2.0 (the "License");
53ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * you may not use this file except in compliance with the License.
63ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * You may obtain a copy of the License at
73ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar *
83ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar *      http://www.apache.org/licenses/LICENSE-2.0
93ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar *
103ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * Unless required by applicable law or agreed to in writing, software
113ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * distributed under the License is distributed on an "AS IS" BASIS,
123ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
133ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * See the License for the specific language governing permissions and
143ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar * limitations under the License.
153ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar */
163ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar
17bdc4c86d3dff74f6634a38e2f7b316b0e823a2c8Alan Viverettepackage androidx.room.integration.kotlintestapp.vo
183ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar
19bdc4c86d3dff74f6634a38e2f7b316b0e823a2c8Alan Viveretteimport androidx.room.Embedded
20bdc4c86d3dff74f6634a38e2f7b316b0e823a2c8Alan Viveretteimport androidx.room.Relation
213ea1d11500fdfe07866c1d6fcc970159d0f04f3aYigit Boyar
225cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyardata class PublisherWithBookSales @JvmOverloads constructor(
235cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyar        @Embedded
245cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyar        val publisher: Publisher,
255cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyar        @Relation(parentColumn = "publisherId", // publisher.publisherId
265cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyar                entityColumn = "bookPublisherId", // book.bookPublisherId
275cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyar                entity = Book::class,
285cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyar                projection = ["salesCnt"])
295cd20c98ceefcf9a2547cb421607d25596433fd5Yigit Boyar        var sales: List<Int>? = emptyList())