This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Account(id: Int, name: String) | |
case class Campaign(id: Int, accountId: Int, name: String) | |
case class Keyword(id: Int, campaignId: Int, name: String) | |
val accounts: List[Account] = List( | |
Account(1, "Maria"), | |
Account(2, "Jon"), | |
Account(3, "Snow") | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.lightbend.akka.sample | |
import akka.actor.{Actor, ActorLogging, ActorSystem, Props} | |
import akka.routing.RoundRobinPool | |
object SampleData { | |
case class Account(id: Int, name: String) | |
case class Campaign(id: Int, accountId: Int, name: String) | |
case class Keyword(id: Int, campaignId: Int, name: String) |