Created
July 9, 2016 07:32
-
-
Save timgent/fda40fe82ab99efca842f6fc5c38ff98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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