问题标签 [android-embedded-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
169 浏览

kotlin - 使用@Relation 从房间数据库中一次选择 3 个实体

我的应用程序中有一个数据库,其中包含 3 个表服务器、站点、组

因此,我们可以看到每个服务器都有站点,每个站点都有几个组。现在我制作了一个名为 ServerSiteWithGroup 的 POJO,其中包含一个服务器和另一个 POJO SiteWithGroup

因此,鉴于我想对房间数据库进行一次查询并获取服务器、站点、组对象,给定serverId, siteId, groupId

我已经尝试过了,但它不起作用

我该如何解决这个问题?