1

使用 Ebean,您可以使用访问器访问 OneToMany 关系。

在 Quill 中执行此操作的最佳方法是什么?

有没有办法用“理解”语法来做到这一点?之后应该在经典的 scala 中处理groupBy吗?

这是一个适用的 scastie SqlMirrorContexthttps ://scastie.scala-lang.org/lEsCs2MqTUutjPnhnPuIzA

我在我的项目中准确地写了这个PostgresqlJdbcContext,但它失败了:

column "x4.author_id" must appear in the GROUP BY clause or be used in an aggregate function

对于那些处于同一点的人,我最终得到groupBy了纯 scala(在查询之外),这仍然是可以接受的。

4

0 回答 0