5                    Play! Scala



    #Playframework    in Tokyo
(Who are you?)
@Masahito

       Play!

Java   3

           IT    Python
5   Play! Scala
Play! Scala
Play! framework

Scala v2.8.X

Play!          Scala



        IDE                   (Intelli J OK)

Heroku/CloudBees       Paas
Model



Play! Java    Groovy   JPA(Hibernate)



Play! Scala   Scala       Anorm
$ play install scala
$ play new myScalaWebapp --with scala
$ play run
Model
Anorm

 SQL         DB   API
 Magic[T]               JPA
 API

ScalaQuery
Anorm

// Create an SQL query
val selectCountries = SQL("Select * from Country")

// Transform the resulting Stream[Row] as a
List[(String,String)]
val countries = selectCountries().map(row =>
    row[String]("code") -> row[String]("name")
).toList
Scala

 CRUD

    play.db.jpa
 asynchronous HTTP       (await()   )

    Play! 2.0

                       Scaladoc


http://naoki-k.blogspot.com/2011/06/play-scala-scaladoc-
ant.html
Play! Scala               Scala LL


Scala

github                             API

              Scala Module 1.0 or Play! 2.0
ML : http://groups.google.com/group/play-framework
github: https://github.com/playframework/play-scala
Doc: http://scala.playframework.org/
ja   : http://playscalaja.appspot.com/
5分で説明する Play! scala

5分で説明する Play! scala

Editor's Notes