Created
March 22, 2017 18:57
-
-
Save zcox/6258713ec73c72db18c9faf39c6ca47c 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
trait ThingRepository { | |
def findThing(id: String): Try[Option[Thing]] | |
} | |
trait ThingService extends ThingRepository { | |
def doSomething(id: String): Unit = { | |
findThing(id) //then do something else... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment