Add the condition function by the primary key.

This commit is contained in:
shimamoto
2013-06-29 04:44:29 +09:00
parent c7d6a56ea2
commit a3133fa128
7 changed files with 14 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ object Repositories extends Table[Repository]("REPOSITORY") with BasicTemplate w
def updatedDate = column[java.util.Date]("UPDATED_DATE")
def lastActivityDate = column[java.util.Date]("LAST_ACTIVITY_DATE")
def * = userName ~ repositoryName ~ isPrivate ~ description.? ~ defaultBranch ~ registeredDate ~ updatedDate ~ lastActivityDate <> (Repository, Repository.unapply _)
def byPrimaryKey = byRepository _
}
case class Repository(