All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cafienne.bounded.cargosample.persistence.CargoPersisters.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2016-2018 Cafienne B.V. 
 */

package io.cafienne.bounded.cargosample.persistence

import io.cafienne.bounded.cargosample.domain.CargoDomainProtocol.{CargoPlanned, NewRouteSpecified}
import stamina.json.persister

object CargoPersisters {

  import io.cafienne.bounded.cargosample.persistence.CargoDomainEventJsonProtocol._

  val v1CargoPlanned      = persister[CargoPlanned]("cargoplanned")
  val v1NewRouteSpecified = persister[NewRouteSpecified]("newroutespecified")

  def persisters = List(
    v1CargoPlanned,
    v1NewRouteSpecified
  )
}

class CargoPersistersSerializer extends ForwardsCompatibleSerializer(CargoPersisters.persisters) {}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy