Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created March 10, 2016 16:02
Show Gist options
  • Save ctataryn/9840771d227c33bc1d1b to your computer and use it in GitHub Desktop.
Save ctataryn/9840771d227c33bc1d1b to your computer and use it in GitHub Desktop.
implicit val chunkStateType = MappedColumnType.base[ChunkState,String](
{ cs:ChunkState => cs.toString},
{ s: String => ChunkState.valueOf(s).get}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment