Hi,
Not sure if this is the right place for this or slick, but essentially I’m trying to leverage slick-codegen to produce some models for my schema and also use play-slick to provide my service/DAO classes with the correct database. The issue I’m having is that mixing in both HasDatabaseConfigProvider
and the Tables
has some access privileges problems. It seems like HasDatabaseConfig
creates a protected final lazy profile:
protected final lazy val profile: P = dbConfig.profile // field is lazy to avoid early initializer problems.
but the Tables
trait from slick-codegen
has a public profile:
trait Tables {
val profile: utils.MyPostgresProfile
...
How can I get play-slick
and slick-codgen to play nicely together? Essentially I am wondering if this example
can be modified to work with play-slick.
Thanks