|
|
|
|
|
by runT1ME
4625 days ago
|
|
This looks great. Seriously all of the answers you give seem simple and convenient ways of doing things. You could reduce your first example to
def findById(userId: Int)(implicit s: Session) = Users.filter(_.id === userId).firstOption |
|