【发布时间】:2013-09-03 11:30:25
【问题描述】:
两个表之间的连接是这样的
(for {
(computer, company) <- Computers leftJoin Companies on (_.companyId === _.id)
if computer.name.toLowerCase like filter.toLowerCase()
}
但是,如果需要在更多表之间加入,那么下面尝试的正确方法是什么,但不起作用
(for {
(computer, company,suppliers) <- Computers leftJoin Companies on (_.companyId === _.id)
//not right leftjoin Suppliers on (_.suppId === _.id)
if computer.name.toLowerCase like filter.toLowerCase()
}
【问题讨论】:
-
计算机与供应商关联