All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bowlerframework.jpa.JpaController.scala Maven / Gradle / Ivy

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)}
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy