Is it possible to write additional property unavailable in case class constructor?
case class Task(var name:String, var counter:Int) extends Entity
by extending by Entity case class have also id property
implicit val task = (
(__ \ 'name).write[String] and
(__ \ 'counter).write[Int] and
(__ \ 'id).write[String] <==== ???
)(unlift(Task.unapply))
How can I add this property?
You can define your writes like this: