ReactiveCouchbase / ReactiveCouchbase-core

Core library for ReactiveCouchbase
Apache License 2.0
64 stars 28 forks source link

omitting some case class properties #55

Closed behrad closed 9 years ago

behrad commented 9 years ago

Is there anyway I can keep a few of my case class properties from being persisted? they are transient :) Is the only way writing my down JSON formatter?

mathieuancelin commented 9 years ago

Hi,

yes the only way to do that is to write your own Json Writer

behrad commented 9 years ago

Hi @mathieuancelin , default values did it!

case class ABC( name: Some[String] = None )

This worked for me, since I can empty those properties on the persistable copy :)