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

@@ -8,6 +8,7 @@ object Labels extends Table[Label]("LABEL") with LabelTemplate {
def * = userName ~ repositoryName ~ labelId ~ labelName ~ color <> (Label, Label.unapply _)
def ins = userName ~ repositoryName ~ labelName ~ color
def byPrimaryKey = byLabel _
}
case class Label(