1

still new in the scalikeJDBC usage, im having this error when compiling my code which was generated from the "reverse engineering" of mysql Db with scalikejdbc 1.7.7 "not found: value withSQL"

any idea?

def find(id: String)(implicit session: DBSession = autoSession): Option[EmployeeBasicDetail] = {
withSQL { 
  select.from(EmployeeBasicDetail as ebd).where.eq(ebd.id, id)
}.map(EmployeeBasicDetail(ebd.resultName)).single.apply()

}

from the method above the compiler points to function "withSQL" not found: value withSQL

thanks

binkabir
  • 144
  • 1
  • 6

0 Answers0