Scala Slick Cake Pattern: over 9000 classes?
问题 I'm developing a Play! 2.2 application in Scala with Slick 2.0 and I'm now tackling the data access aspect, trying to use the Cake Pattern. It seems promising but I really feel like I need to write a huge bunch of classes/traits/objects just to achieve something really simple. So I could use some light on this. Taking a very simple example with a User concept, the way I understand it is we should have: case class User(...) //model class Users extends Table[User]... //Slick Table object users