org.bowlerframework.jpa.JpaController.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa-mapper_2.9.1 Show documentation
Show all versions of jpa-mapper_2.9.1 Show documentation
Bowler Framework Project POM
The newest version!
package org.bowlerframework.jpa
import org.bowlerframework.controller.InterceptingController
import org.bowlerframework.{Request, Response}
import com.recursivity.jpa.Jpa._
/**
* Created by IntelliJ IDEA.
* User: wfaler
* Date: 30/01/2011
* Time: 02:59
* To change this template use File | Settings | File Templates.
*/
class JpaController extends InterceptingController {
def around(request: Request, response: Response)(controller: (Request, Response) => Unit) = {
transaction{controller(request, response)}
}
}