Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created March 10, 2016 22:27
Show Gist options
  • Save ctataryn/d7712e7226b5543cc3a9 to your computer and use it in GitHub Desktop.
Save ctataryn/d7712e7226b5543cc3a9 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