I have the following query in scala:
val query = for {
(table1, table2) <- Customer leftJoin Transaction on (_.custID === _.custID)
if table1.name === "ABCD"
} yield (table1.name, table2.date)
When I use query
i have to use query._1
or query._2
for name
and date
respectively. Is the a way to use something of this kind: query.name
, query.date