Fix byPrimaryKey problem.

This commit is contained in:
takezoe
2013-07-01 20:21:33 +09:00
parent 741596a6f5
commit 56cec26c5b
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -10,7 +10,8 @@ object Milestones extends Table[Milestone]("MILESTONE") with MilestoneTemplate w
def * = userName ~ repositoryName ~ milestoneId ~ title ~ description.? ~ dueDate.? ~ closedDate.? <> (Milestone, Milestone.unapply _) def * = userName ~ repositoryName ~ milestoneId ~ title ~ description.? ~ dueDate.? ~ closedDate.? <> (Milestone, Milestone.unapply _)
def ins = userName ~ repositoryName ~ title ~ description.? ~ dueDate.? ~ closedDate.? def ins = userName ~ repositoryName ~ title ~ description.? ~ dueDate.? ~ closedDate.?
def byPrimaryKey = byMilestone _ def byPrimaryKey(owner: String, repository: String, milestoneId: Int) = byMilestone(owner, repository, milestoneId)
def byPrimaryKey(userName: Column[String], repositoryName: Column[String], milestoneId: Column[Int]) = byMilestone(userName, repositoryName, milestoneId)
} }
case class Milestone( case class Milestone(