Skip to content

Instantly share code, notes, and snippets.

View shivam-880's full-sized avatar
🔬

Shivam shivam-880

🔬
View GitHub Profile
package com.timmeh.openhr.openholidays.model
import slick.driver.H2Driver.api._
import slick.lifted.{ProvenShape, ForeignKeyQuery}
// This file demonstrates how to map many columns into a nested case class using projections for each case class
class LargeTableExample1(tag: Tag)
extends Table[LargeTableRow](tag, "LARGE_TABLE") {
def idToD = (id, a, b, c, d)
def id = column[Int]("ID", O.PrimaryKey)