Skip to content

Instantly share code, notes, and snippets.

@timgent
Created July 9, 2016 07:32
Show Gist options
  • Save timgent/fda40fe82ab99efca842f6fc5c38ff98 to your computer and use it in GitHub Desktop.
Save timgent/fda40fe82ab99efca842f6fc5c38ff98 to your computer and use it in GitHub Desktop.
import slick.driver.H2Driver.api._
case class Holiday(id: Int, employeeId: Int, holDate: java.sql.Date, holDayType: String, holType: String)
class Holidays(tag: Tag)
extends Table[Holiday](tag, "HOLIDAYS") {
def id = column[Int]("HOL_ID", O.PrimaryKey)
def employeeId = column[Int]("EMP_ID")
def holDate = column[java.sql.Date]("HOL_DATE")
def holDayType = column[String]("HOL_DAY_TYPE")
def holType = column[String]("HOL_TYPE")
def * = (id, employeeId, holDate, holDayType, holType) <> (Holiday.tupled, Holiday.unapply)
*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment