Play framework + Slick, use trait for any tables and use Inject() dbConfig for this trait, how fix?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Play framework + Slick, use trait for any tables and use Inject() dbConfig for this trait, how fix?

Anatoliy Evladov
Hi! 
I very bad speak ing for english, sorry..

I have 1 trait, 1 class and 1 object:

If i use 
trait ModelDef[T, MTD <: ModelTableImpl[T]] extends DBConfig 
 i see not enough arguments for constructor DBConfig: (dbConfigProvider: play.api.db.slick.DatabaseConfigProvider)dao.DBConfig.
Unspecified value parameter dbConfigProvider.

and i just do not know - how to fix it?
i will answer any questions..

--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.