This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
*/ |
NewerOlder