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