How to get data with the related table in Slick and Quill without a join?
I'm working with Scala, MySQL, Slick and Quill. Here are my one to many tables (one employee has many assets): Employee Table +-------------+-------+--------+ | employee_id | name | salary | +-------------+-------+--------+ | 1 | A | 50 | | 2 | B | 42 | | 5 | C | 28 | | 8 | D | 61 | +-------------+-------+--------+ Asset Table +----------+----------+-------------+ | asset_id | name | employee_id | +----------+----------+-------------+ | 1 | mouse | 1 | | 2 | keyboard | 1 | | 3 | monitor | 1 | | 5 | keyboard | 2 | | 6 | mouse | 5 | | 8 | mouse | 8 | +----------+----------+-------------+ Here ar
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.