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

@@ -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 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(