Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def getInfo(id: Int) = {
  2.  
  3. val innerJoin = for {
  4. a <- tableA
  5. b <- tableB if a.id === b.s_id
  6. } yield b.name
  7.  
  8. println(innerJoin) // results in Rep(Bind)
  9.  
  10. innerJoin.map(println(_)) // results in Rep(Ref @1535257794)
  11. }
  12.  
  13. innerJoin.map(c => c).forEach(id =>
  14. println(id)
  15. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement