{"action":"created","issue":{"url":"https://api.github.com/repos/EventStore/EventStore.Akka.Persistence/issues/14","labels_url":"https://api.github.com/repos/EventStore/EventStore.Akka.Persistence/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/EventStore/EventStore.Akka.Persistence/issues/14/comments","events_url":"https://api.github.com/repos/EventStore/EventStore.Akka.Persistence/issues/14/events","html_url":"https://github.com/EventStore/EventStore.Akka.Persistence/issues/14","id":73720683,"number":14,"title":"Provide a sample application","user":{"login":"domdorn","id":100349,"avatar_url":"https://avatars.githubusercontent.com/u/100349?v=3","gravatar_id":"","url":"https://api.github.com/users/domdorn","html_url":"https://github.com/domdorn","followers_url":"https://api.github.com/users/domdorn/followers","following_url":"https://api.github.com/users/domdorn/following{/other_user}","gists_url":"https://api.github.com/users/domdorn/gists{/gist_id}","starred_url":"https://api.github.com/users/domdorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domdorn/subscriptions","organizations_url":"https://api.github.com/users/domdorn/orgs","repos_url":"https://api.github.com/users/domdorn/repos","events_url":"https://api.github.com/users/domdorn/events{/privacy}","received_events_url":"https://api.github.com/users/domdorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T19:59:17Z","updated_at":"2015-05-06T21:41:36Z","closed_at":null,"body":"I'm trying to integrate this project into my project but I'm a little stuck... \r\n\r\nIs there a simple way to make my (existing) events (case classes) be serialized ? \r\n\r\nI added the SprayJsonSerializer to my project, added the required configuration files.. now I'm stuck on how to change my existing events so they get handled correct by this plugin. \r\n\r\nMy approach was that my Events would simply extend eventstore.EventData, but that does not work as its forbidden to extend case classes... \r\n\r\n```scala\r\npackage com.dominikdorn.akkapersistence.messages\r\n\r\nimport java.util.UUID\r\n\r\nimport eventstore.{ContentType, Event, Content, EventData}\r\n\r\ncase class Cmd(msg: String)\r\n\r\ncase class Evt(_type: String, msg: String)  extends EventData (\r\n    eventType = _type,\r\n    UUID.randomUUID(),\r\n    Content(akka.util.ByteString.fromString(msg), ContentType.Json),\r\n    metadata = Content()\r\n  )\r\n```\r\n\r\nIs there another way? I don't want to implement a SprayJsonSerializer for every event type I have in my system... maybe providing a implicit MyEvent -> JsValue converter? \r\n\r\nA sample which illustrates how to really use this akka persistence plugin would greatly help.\r\n\r\nThanks,\r\nDominik"},"comment":{"url":"https://api.github.com/repos/EventStore/EventStore.Akka.Persistence/issues/comments/99618192","html_url":"https://github.com/EventStore/EventStore.Akka.Persistence/issues/14#issuecomment-99618192","issue_url":"https://api.github.com/repos/EventStore/EventStore.Akka.Persistence/issues/14","id":99618192,"user":{"login":"t3hnar","id":327341,"avatar_url":"https://avatars.githubusercontent.com/u/327341?v=3","gravatar_id":"","url":"https://api.github.com/users/t3hnar","html_url":"https://github.com/t3hnar","followers_url":"https://api.github.com/users/t3hnar/followers","following_url":"https://api.github.com/users/t3hnar/following{/other_user}","gists_url":"https://api.github.com/users/t3hnar/gists{/gist_id}","starred_url":"https://api.github.com/users/t3hnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t3hnar/subscriptions","organizations_url":"https://api.github.com/users/t3hnar/orgs","repos_url":"https://api.github.com/users/t3hnar/repos","events_url":"https://api.github.com/users/t3hnar/events{/privacy}","received_events_url":"https://api.github.com/users/t3hnar/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T21:41:36Z","updated_at":"2015-05-06T21:41:36Z","body":"Hi @domdorn, there is an [example](https://github.com/EventStore/EventStore.Akka.Persistence/blob/master/src/test/scala/akka/persistence/eventstore/SprayJsonSerializer.scala)\r\nbasically you need to provide mapping to each event."}}