Slick getting a subclass from a single table inheritance Table

自古美人都是妖i 提交于 2020-01-16 14:06:22

问题


I have used Single Table Inheritance to map my models using Slick, following the example found in this question.

How do you run queries which return a given type?

Eg in the example above, def getFisicia2():PessoaFisica2 = db.run {???}

来源:https://stackoverflow.com/questions/58589229/slick-getting-a-subclass-from-a-single-table-inheritance-table

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!