package models.film

import play.api.libs.json.Json

object FilmDbKey {
  def apply(id: String) = s"film::$id"
}

case class Film(isbn: String, name: String, release: Int)

object Film {
  implicit val defaultReads = Json.reads[Film]
  implicit val defaultWrites = Json.writes[Film]
}

package models.film

import play.api.libs.json.Json

object FilmDbKey {
  def apply(id: String) = s"film::$id"
}

case class Film(isbn: String, name: String, release: Int)

object Film {
  implicit val defaultFormat = Json.format[Film]
}

Replace Reads and Writes with Format
Replace Reads and Writes with Format
