Siena


The siena module enables Siena support to map your Java entities to GAE/MySQL/PostgreSQL/H2 from your play application (at least since v2.0.0).
Kuo-ChaoYis-MacBook:kuoFirstPlay kuochaoyi$ play install siena-2.0.0
~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.2RC1, http://www.playframework.org
~
~ Will install siena-2.0.0
~ This module is compatible with: [1.2.1,)
~ Do you want to install this version (y/n)? y
~ Installing module siena-2.0.0...
~
~ Fetching http://www.playframework.org/modules/siena-2.0.0.zip
~ [--------------------------100%-------------------------] 13804.8 KiB/s   
~ Unzipping...
~
~ Module siena-2.0.0 is installed!
~ You can now use it by adding it to the dependencies.yml file:
~
~ require:
~     play -> siena 2.0.0


Kuo-ChaoYis-MacBook:kuoFirstPlay kuochaoyi$ play install crudsiena-2.0.0
~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.2RC1, http://www.playframework.org
~
~ Will install crudsiena-2.0.0
~ This module is compatible with: [1.2.1,)
~ Do you want to install this version (y/n)? y
~ Installing module crudsiena-2.0.0...
~
~ Fetching http://www.playframework.org/modules/crudsiena-2.0.0.zip
~ [--------------------------100%-------------------------] 12303.8 KiB/s   
~ Unzipping...
~
~ Module crudsiena-2.0.0 is installed!
~ You can now use it by adding it to the dependencies.yml file:
~
~ require:
~     play -> crudsiena 2.0.0
~


Kuo-ChaoYis-MacBook:kuoFirstPlay kuochaoyi$ vi conf/dependencies.yml 
require:
    - play
    - play -> scala 0.9.1
    - play -> siena 2.0.0
    - play -> crudsiena 2.0.0
                                                                                                                     
                                                                                                    
Kuo-ChaoYis-MacBook:kuoFirstPlay kuochaoyi$ play dependencies
~        _            _ 
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/   
~
~ play! 1.2.2RC1, http://www.playframework.org
~
~ Resolving dependencies using /Users/kuochaoyi/playApps/kuoFirstPlay/conf/dependencies.yml,
~
~ play->scala 0.9.1 (from playLocalModules)
~ play->siena 2.0.0 (from playLocalModules)
~ commons-beanutils->commons-beanutils-core 1.7.0 (from mavenCentral)
~ commons-betwixt->commons-betwixt 0.8 (from mavenCentral)
~ commons-digester->commons-digester 1.7 (from mavenCentral)
~ xml-apis->xml-apis 1.0.b2 (from mavenCentral)
~ commons-dbcp->commons-dbcp 1.2.1 (from mavenCentral)
~ commons-pool->commons-pool 1.2 (from mavenCentral)
~ xml-apis->xml-apis 2.0.2 (from mavenCentral)
~ isorelax->isorelax 20020414 (from mavenCentral)
~ msv->msv 20020414 (from mavenCentral)
~ oro->oro 2.0.8 (from mavenCentral)
~ relaxngDatatype->relaxngDatatype 20020414 (from mavenCentral)
~ saxpath->saxpath 1.0-FCS (from mavenCentral)
~ stax->stax-api 1.0.1 (from mavenCentral)
~ play->crudsiena 2.0.0 (from playLocalModules)
~ play->siena 2.0.0 (from playLocalModules)
~
~ Downloading required dependencies,
~
~ downloading http://repo1.maven.org/maven2/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-~ 7.0.jadownloading http://repo1.maven.org/maven2/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-~ 7.0.jadownloading ..................
                       

~
~ Some dynamic revisions have been resolved as following,
~
~ play->play [1.2.1,) will use version 1.2.2RC1
~ play->siena [2.0.0,) will use version 2.0.0
~
~ Some dependencies have been evicted,
~
~ commons-collections 2.1 is overriden by commons-collections 3.2.1
~ commons-collections 2.0 is overriden by commons-collections 3.2.1
~ commons-beanutils 1.7.0 is overriden by commons-beanutils 1.8.3
~ commons-logging 1.0 is overriden by commons-logging 1.1.1
~ dom4j 1.4 is overriden by dom4j 1.6.1
~ commons-logging 1.0.4 is overriden by commons-logging 1.1.1
~ junit 3.8.1 is overriden by junit 4.8.1
~ play 1.2.2RC1 is overriden by play 1.2.2
~ commons-codec 1.3 is overriden by commons-codec 1.4
~ jaxen 1.0-FCS is overriden by jaxen 1.1
~ commons-collections 3.1 is overriden by commons-collections 3.2.1
~ xml-apis 1.0.b2 is overriden by xml-apis 2.0.2
~ commons-beanutils 1.6 is overriden by commons-beanutils 1.8.3
~
~ Installing resolved dependencies,
~
~ modules/scala-0.9.1 -> /KuoSDK/play-1.2/modules/scala-0.9.1
~ modules/siena-2.0.0 -> /KuoSDK/play-1.2/modules/siena-2.0.0
~ modules/crudsiena-2.0.0 -> /KuoSDK/play-1.2/modules/crudsiena-2.0.0
~ lib/commons-beanutils-core-1.7.0.jar
~ lib/commons-betwixt-0.8.jar
~ lib/commons-dbcp-1.2.1.jar
~ lib/isorelax-20020414.jar
~ lib/msv-20020414.jar
~ lib/oro-2.0.8.jar
~ lib/relaxngDatatype-20020414.jar
~ lib/saxpath-1.0-FCS.jar
~ lib/stax-api-1.0.1.jar
~ lib/commons-digester-1.7.jar
~ lib/commons-pool-1.2.jar
~
~ *****************************************************************************
~ WARNING: These dependencies are missing, your application may not work properly (use --verbose for details),
~
~ play->play 1.2.2
~ *****************************************************************************
~
~ Some dependencies are still missing.



8.修改war目錄下的appengine-web.xml文件,設置application id
9.生成WAR目錄:
play war testapp -o testapp.war
10.應用部署到GAE
appcfg update testapp.war


Reference


Comments