Created
February 2, 2011 01:00
-
-
Save wfaler/807057 to your computer and use it in GitHub Desktop.
crudsetup.scala
This file contains hidden or 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
import org.squeryl.Schema | |
// setup Squeryl Schema with a single entity type/table | |
object Library extends Schema { | |
val authors = table[Author]("authors") | |
} | |
// setup CRUD Controller - gives you full CRUD serverside behavior with JSON rendering etc! | |
val dao = new LongKeyedDao[Author](authors) | |
val controller = new CrudController[Author, Long](dao, "authors") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment