Skip to content

Instantly share code, notes, and snippets.

View iamsmkr's full-sized avatar
🔬

Shivam Kapoor iamsmkr

🔬
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)