Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getInfo(id: Int) = {
- val innerJoin = for {
- a <- tableA
- b <- tableB if a.id === b.s_id
- } yield b.name
- println(innerJoin) // results in Rep(Bind)
- innerJoin.map(println(_)) // results in Rep(Ref @1535257794)
- }
- innerJoin.map(c => c).forEach(id =>
- println(id)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement