io.cafienne.bounded.cargosample.persistence.CargoPersisters.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cargo-sample_2.12 Show documentation
Show all versions of cargo-sample_2.12 Show documentation
Scala and Akka based Domain Driven Design Framework
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