0

I would like to use named references instead of positional in GetResult, so that instead of this:

implicit val getCoffeeResult = GetResult(r => Coffee(r.<<, r.<<, r.<<))

i could write something like this:

implicit val getCoffeeResult = GetResult(r => Coffee(r.get("name"), r.get("supID"),r.get("price")))

I can has named result?

Julio Faerman
  • 13,228
  • 9
  • 57
  • 75

1 Answers1

3

You can get it through the resultset:

r.rs.getString("name")
Faruk Sahin
  • 8,406
  • 5
  • 28
  • 34