Is it bad practice in Play! Framework to define the implicit DB session inside the controller to have less boilerplate?
object MyController extends Controller {
implicit val session = DB.createSession
}
I'm not sure about the life cycle of controllers in Play!, can somebody enlighten me?