I'm currently trying to use Play! Framework 2.2
and play-slick
(master branch).
In the play-slick code I would like to override driver definition in order to add the Oracle Driver (I'm using slick-extension). In the Config.Scala of play-slick I just saw /** Extend this to add driver or change driver mapping */
...
I'm coming from far far away (currently reading Programming In Scala) so there's a lot to learn. So my questions are :
- Can someone explain me how to extend this Config object ? this object is used in others classes ... Is the cake apttern useful here ?
- Talking about cake pattern, I read the computer-database example provided by play-slick. This sample uses the cake pattern and
import play.api.db.slick.Config.driver.simple._
If I'm using Oracle driver I cannot use this import, am I wrong ? How can I use the cake pattern to define an implicit session ?
Thanks a lot. Waiting for your advices and I'm still studying the play-slick code at home :)