Skip to content

Instantly share code, notes, and snippets.

View jonifreeman's full-sized avatar

Joni Freeman jonifreeman

View GitHub Profile
case class Book(title: String, date: Date, author: String)
val someDate = new Date
/* Would be nice to return String, PreparedStmt or something instead of Dynamic
val books: Dynamic[String] = Book
val q1 = books.findByTitle("The Stand") // q1, q2 and q3 are Strings
val q2 = books.findByTitleLike("Harry Pot%")
val q3 = books.findByDateGreaterThan(someDate)
*/
case class Book(title: String, date: Date, author: String)
val someDate = new Date
/* Would be nice to return String, PreparedStmt or something instead of Dynamic
val books: Dynamic[String] = Book
val q1 = books.findByTitle("The Stand")
val q2 = books.findByTitleLike("Harry Pot%")
val q3 = books.findByDateGreaterThan(someDate)
*/