Last active
August 29, 2015 14:00
-
-
Save j5ik2o/11168732 to your computer and use it in GitHub Desktop.
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 Cart | |
(id: CartId, | |
status: StatusType.Value, | |
customerId: CustomerId, | |
cartItems: List[CartItem], | |
version: Option[Long]) extends Entity[CartId] { | |
def customer(implicit cr: CustomerRepository, | |
ctx: EntityIOContext): Try[Customer] = | |
cr.resolveById(customerId) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment