Improve mapping of custom column type.

This commit is contained in:
shimamoto
2013-07-08 17:25:31 +09:00
parent f13e2c0d71
commit 136a654639
12 changed files with 8 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ package model
import scala.slick.driver.H2Driver.simple._
object Accounts extends Table[Account]("ACCOUNT") with Functions {
object Accounts extends Table[Account]("ACCOUNT") {
def userName = column[String]("USER_NAME", O PrimaryKey)
def mailAddress = column[String]("MAIL_ADDRESS")
def password = column[String]("PASSWORD")