Example in Readme
Closed this issue · 1 comments
mancvso commented
What's going on here?
When you define the class Blog, it contains two attributes and none of them is content.
//...
val blog = Blog("Dim", content = Message("Hi"))
//...
should read
//...
val blog = Blog("Dim", message = Message("Hi"))
//...
Or if you want to leverage some semantics, maybe the case class has to be defined
case class Blog(author: String, @Embedded content: Message)